Skip to content

applySqlSessionSchema

applySqlSessionSchema(client): Effect<void, SessionStoreError>

Defined in: packages/core/src/session/sql.ts:173

Applies the schema without a transaction.

D1 does not support transactions, and Migrator currently infers transactionality from the dialect. Use this until Migrator can be told that a client must run without a transaction. Every statement is idempotent, so a repeated run is safe.

SqlClient

Effect<void, SessionStoreError>