Releases: ForbesLindesay/atdatabases
Releases · ForbesLindesay/atdatabases
@databases/[email protected]
Bug Fixes
-
Sub-queries that were guaranteed to be
false
could result in attempting to execute SQL that was not syntactically valid. (#288)For example, given the function:
async function getUsersThatCreatedPhotos(photoIds: DbPhoto["id"][]) { return await users(db) .find({id: photos.key(`created_by_id`, {id: anyOf(photoIds)})}) .all() }
Calling:
getUsersThatCreatedPhotos([])
should return a Promise for an empty array, without actually needing to query the database, but instead it attempted to run a database query that was not valid SQL.
@databases/[email protected]
New Features
- Added support for config files with
.cjs
extension (#287)
@databases/[email protected]
New Features
- Added support for config files with
.cjs
extension (#287)
@database/[email protected]
Initial Release
@databases/[email protected]
New Features
- Initial Release (#275)
@databases/[email protected]
Bug Fixes
- Update
interrogator
dependency to remove broken TypeScript definitions (#275)
@databases/[email protected]
Bug Fixes
- Update
interrogator
dependency to remove broken TypeScript definitions (#275)
@databases/[email protected]
Bug Fixes
- Update
interrogator
dependency to remove broken TypeScript definitions (#275)
@databases/[email protected]
Bug Fixes
- Update
interrogator
dependency to remove broken TypeScript definitions (#275)
@databases/[email protected]
New Features
- Added the
isSqlQuery
utility to the defaultsql
export so it can be used assql.isSqlQuery(q)
to test whether a value is an SQL query. (#268)