Wie geht es dir?
Timezone: CEST
Location: Berlin, Germany
| const postgresRecordCreator = async ({ tableName, item }) => { | |
| const [res] = await knex(tableName) | |
| .insert(item) | |
| // return all fields of the newly created db record | |
| .returning(['id', ...Object.keys(item)]); | |
| return res; | |
| } | |
| const sqLiteRecordCreator = async ({ tableName, item }) => { | |
| const [id] = await knex(tableName) |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object: