File tree Expand file tree Collapse file tree
packages/verrou/src/drivers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ import { E_LOCK_NOT_OWNED } from '../errors.js'
44import type { KyselyOptions , LockStore } from '../types/main.js'
55
66/**
7- * Create a new knex store
7+ * Create a new Kysely store
88 */
9- export function knexStore ( config : KyselyOptions ) {
9+ export function kyselyStore ( config : KyselyOptions ) {
1010 return { config, factory : ( ) => new KyselyStore ( config ) }
1111}
1212
1313export class KyselyStore implements LockStore {
1414 /**
15- * Knex connection instance
15+ * Kysely connection instance
1616 */
1717 #connection: Kysely < any >
1818
@@ -44,7 +44,7 @@ export class KyselyStore implements LockStore {
4444 . createTable ( this . #tableName)
4545 . addColumn ( 'key' , 'varchar(255)' , ( col ) => col . primaryKey ( ) . notNull ( ) )
4646 . addColumn ( 'owner' , 'varchar(255)' , ( col ) => col . notNull ( ) )
47- . addColumn ( 'expiration' , 'bigint' )
47+ . addColumn ( 'expiration' , 'bigint' , ( col ) => col . unsigned ( ) )
4848 . ifNotExists ( )
4949 . execute ( )
5050 }
You can’t perform that action at this time.
0 commit comments