package
0.0.698
Repository: https://github.com/ory/x.git
Documentation: pkg.go.dev

# Functions

Canonicalize returns constants DriverMySQL, DriverPostgreSQL, DriverCockroachDB, UnknownDriver, depending on `database`.
GetDriverFor returns a driver for the given DSN or ErrNoResponsibleDriverFound if no driver was found.
IsMemorySQLite returns true if a given DSN string is pointing to a SQLite database.
IsSQLite returns true if the connection is a SQLite string.
MustCanonicalize returns constants DriverMySQL, DriverPostgreSQL, DriverCockroachDB or fatals.
NewSharedUniqueInMemorySQLiteDatabase creates a new unique SQLite database which is shared amongst all callers and identified by an individual file name.
NewSQLiteInMemoryDatabase creates a new unique SQLite database which is shared amongst all callers and identified by an individual file name.
NewSQLiteTestDatabase creates a new unique SQLite database which is shared amongst all callers and identified by an individual file name.
RegisterDriver registers a driver.

# Constants

DriverCockroachDB is the cockroach driver name.
DriverMySQL is the mysql driver name.
DriverPostgreSQL is the postgres driver name.
SQLiteInMemory is a DNS string for SQLite in-memory database.
SQLiteSharedInMemory is a DNS string for SQLite in-memory database in shared mode.
UnknownDriver is the driver name if the driver is unknown.

# Variables

ErrNoResponsibleDriverFound is returned when no driver was found for the provided DSN.
No description provided by the author

# Interfaces

Driver represents a driver.