You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've previously worked with postgres and django-orm. The primary key id is auto-generated by django. The same thing happens with denodb and sqlite3. It is not the case with postgres. User has to provide an unique integer while creating a record. Can we have the same functionality as sqlite3 for postgres or is there any reason for not auto-generating the primary key for postgres?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've previously worked with postgres and django-orm. The primary key
id
is auto-generated by django. The same thing happens with denodb and sqlite3. It is not the case with postgres. User has to provide an unique integer while creating a record. Can we have the same functionality as sqlite3 for postgres or is there any reason for not auto-generating the primary key for postgres?Beta Was this translation helpful? Give feedback.
All reactions