10 lines
233 B
TypeScript
10 lines
233 B
TypeScript
import Knex from 'knex';
|
|
import {connectDB} from './src/database';
|
|
|
|
async function main() {
|
|
const db = await connectDB();
|
|
const query = db.update({deleted_at: null}).from('document');
|
|
console.log(query.toSQL());
|
|
}
|
|
|
|
main() |