1.0.1 • Published 1 year ago

@lucia-auth/adapter-kysely v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@lucia-auth/adapter-kysely

Kysely adapter for Lucia

Documentation

Lucia documentation

Changelog

Installation

npm install @lucia-auth/adapter-kysely

Requires lucia-auth@0.11.0.

Testing

First follow the documentation on database set up.

PostgreSQL

Add username column:

ALTER TABLE public.user
ADD COLUMN username TEXT NOT NULL UNIQUE;
pnpm test-psql
PSQL_DATABASE_URL="" # database url

MySQL

Add username column:

ALTER TABLE user
ADD COLUMN username VARCHAR(31) NOT NULL UNIQUE AFTER id;
MYSQL_DATABASE="" # database name
MYSQ_PASSWORD="" # password
pnpm test-mysql-main

SQLITE

Add username column:

ALTER TABLE user ADD COLUMN username VARCHAR(31) NOT NULL;
CREATE UNIQUE INDEX username ON user(username);
pnpm test-sqlite-main
1.0.1

1 year ago

1.0.0

1 year ago

0.6.3

1 year ago

0.8.0

1 year ago

0.7.1

1 year ago

0.7.0

1 year ago

0.6.1

1 year ago

0.6.0

1 year ago

0.5.0

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago