Skip to content

BillRun/Mongodloid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Mongodloid

MongoDB PHP Layer used by BillRun

http://billrun.net

Auto-Increment

The library support auto increment feature which is useful on sharded environment.

Please check createAutoInc method in Entity and Collection classes for simple usage.

The dependency for this feature is to create the next collection with the unique indexes:
db.createCollection('counters');
db.counters.ensureIndex({coll: 1, seq: 1}, { unique: true, sparse: false, background: true});
db.counters.ensureIndex({coll: 1, oid: 1}, { unique: true, sparse: false, background: true});

LICENSE

GPL-v2 and above

About

Mongo DB PHP Layer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages