I’m coming from a postgresql background where we have a “DEFAULT” keyword that will automatically insert your record with the next available number… assuming your table was created using a PK that’s set to auto increment.
I’m wondering how to do something similar with couchbase. I’ve manually added some documents that are called “audit_1” and “audit_2” but I’d like a way to programmatically assign these document names. Or maybe I need a complete paradigm shift. ??
I’ve been reading this: http://developer.couchbase.com/documentation/server/4.1/sdks/php-2.0/documents.html
But there’s not enough information there about how one goes about choosing a document id / document name.
Any tips would be appreciated.