- Abstract shared sql code to a new drizzle package - Adds sqlite package, not ready to publish until drizzle patches some issues - Add `transactionOptions` to allow customizing or disabling db transactions - Adds "experimental" label to the `schemaName` property until drizzle patches an issue
7 lines
221 B
TypeScript
7 lines
221 B
TypeScript
import type { DeleteWhere } from './types.js'
|
|
|
|
export const deleteWhere: DeleteWhere = async function deleteWhere({ db, tableName, where }) {
|
|
const table = this.tables[tableName]
|
|
await db.delete(table).where(where)
|
|
}
|