Ruby-Sequel - Sqlite3 table schema

F

flebber

Hi

Looking for a little assistance. I am trying to create a basic
database schema using Ruby, Sequel and Sqlite3.

I am reading here http://sequel.rubyforge.org/rdoc/classes/Sequel/Database.html#M000510
and http://www.firstsql.com/tutor6.htm .

The only thing that would be unusual about my db is that I want to use
two primary keys time & date as no more than one event can occur at
any time though multiple events could occur on a day. I am not
understanding in sequel how to correctly create a db with multiple
keys? Or should I just be generating a random number to create a key
which references date and time?

Thanks

Sayth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top