sgpatil / oriquent

Orientdb Eloquent driver for Laravel 5
MIT License
47 stars 15 forks source link

How can I use SEQUENCE with OrientDB 2.2 #22

Open nambhd opened 8 years ago

nambhd commented 8 years ago

http://orientdb.com/docs/2.2/Sequences-and-auto-increment.html I can't not run this statement: DB::statement("CREATE SEQUENCE idseq"); And then, when I create or update record, how to SET id = sequence('idseq').next().

aligin commented 8 years ago

Use CREATE SEQUENCE idseq TYPE ORDERED.