Skip to content

migrate

const migrate: (client) => Effect<void, SessionStoreError> = migrateSqlSessionStore

Defined in: sqlite.ts:62

Applies the store schema. Safe to run on every startup.

Applies the session migrations through Effect SQL’s Migrator.

The migrations are supplied as effects rather than files, so a binding without a filesystem can still use the migrator. Once a client supports transactions, Migrator records each migration atomically.

SqlClient

Effect<void, SessionStoreError>