Documentation
¶
Overview ¶
Package postgresql provides the Better Auth PostgreSQL database adapter.
Applications may open the *sql.DB with pgx/v5/stdlib or another compatible PostgreSQL database/sql driver.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWithOptions ¶ added in v1.1.0
NewWithOptions is New with optional settings.
Types ¶
type Options ¶ added in v1.1.0
type Options struct {
// SchemaName is the schema (namespace) that holds Better Auth's tables,
// for example "auth". When set, every statement names its table as
// "auth"."user", so the adapter no longer depends on the connection's
// search_path, and Migrate runs CREATE SCHEMA IF NOT EXISTS before it
// creates tables. It matches Better Auth's database.schemaName.
SchemaName string
}
Options holds optional PostgreSQL adapter settings.