I hereby claim:
- I am veryspry on github.
- I am mattehlinger (https://keybase.io/mattehlinger) on keybase.
- I have a public key ASDM9l55PL4IMTmYHyZfK21F1eVl56SfVpNpBCiHIrT0lwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
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) |