node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

35
server/node_modules/knex/scripts/runkit-example.js generated vendored Normal file
View File

@@ -0,0 +1,35 @@
require('sqlite3');
const Knex = require('knex');
const knexSqlite = Knex({
client: 'sqlite',
connection: ':memory:',
});
// eslint-disable-next-line no-unused-vars
const knexMysql = Knex({
client: 'mysql2',
});
const knexPg = Knex({
client: 'pg',
});
(async function run() {
await knexSqlite.schema.createTable('test', (t) => {
t.increments('id').primary();
t.string('data');
});
await knexSqlite('test').insert([{ data: 'foo' }, { data: 'bar' }]);
console.log('test table data:', await knexSqlite('test'));
console.log(
knexPg({ f: 'foo', b: 'bar' })
.select('foo.*')
.where('f.name', knexPg.raw('??', ['b.name']))
.whereIn('something', knexPg('bar').select('id'))
.toSQL().sql
);
})();