kitchen-examples icon indicating copy to clipboard operation
kitchen-examples copied to clipboard

Simple question

Open catware opened this issue 9 years ago • 1 comments

hello @perak. I'm trying to use postgresql in the backend (because all the bussines rules are there), and replace the Mongo's newId by reading in a pg sequence an int value, but "example-invoices" I must retain the invoices id due to link with invoice_item. how do you think you could do that? thanks in advance!

catware avatar May 31 '16 22:05 catware

@catware I didn't play with postgresql in combination with meteor, so I cannot help a lot. Maybe you should write some id (not primary key) amd read inserted record searching that key - then you'll get primary key generated by postgres...

perak avatar May 31 '16 22:05 perak