Skip to content

Commit d905df0

Browse files
committed
chore: fix typos
1 parent 31c5bf7 commit d905df0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/verrou/src/drivers/kysely.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ import { E_LOCK_NOT_OWNED } from '../errors.js'
44
import 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

1313
export 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
}

0 commit comments

Comments
 (0)