perak / kitchen-examples

Meteor Kitchen examples
164 stars 115 forks source link

Simple question #39

Open catware opened 8 years ago

catware commented 8 years ago

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!

perak commented 8 years ago

@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...