How can I create a table with a composite primary key with this library. For example:
CREATE TABLE something (
column1,
column2,
column3,
PRIMARY KEY (column1, column2)
);
The only example I see in the documentation is a primary key on single column:
try db.run(users.create { t in
t.column(id, primaryKey: true)
t.column(email, unique: true)
t.column(name)
})
I tried the following but fails with an error (...table "" has more than one primary key) :
try db.run(tblTsMosStaged.create { t in
t.column(colTsMosStagedEventId, primaryKey: true)
t.column(colTsMosStagedEventInstance, primaryKey: true)
t.column(colTsMosStagedTaxId, primaryKey: true)
t.column(colTsMosStagedRankId)
...
Or is this only possible via Executing Arbitrary SQL