14 lines
313 B
Markdown
14 lines
313 B
Markdown
# drizzle-orm-sqlite 0.15.0
|
|
|
|
- Add composite PK's on table schema definition
|
|
|
|
#### Usage example
|
|
```typescript
|
|
const pkExample = sqliteTable('pk_example', {
|
|
id: integer('id'),
|
|
name: text('name').notNull(),
|
|
email: text('email').notNull(),
|
|
}, (table) => ({
|
|
compositePk: primaryKey(table.id, table.name)
|
|
}));
|
|
``` |