Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OptFunc ¶
type OptFunc[T any] func(*T)
OptFunc defines the signature for an option function
func WithEnableWALMode ¶
WithEnableWALMode sets the WAL mode
type PersistentSQLx ¶
type PersistentSQLx struct {
// contains filtered or unexported fields
}
PersistentSQLx contains the persistent database connection
func MustConnect ¶
func MustConnect(opts ...OptFunc[DBConfig]) *PersistentSQLx
Connect creates a new PersistentSQLx instance
func NewWithOptions ¶
func NewWithOptions(opts *DBConfig) *PersistentSQLx
NewWithOptions creates a new PersistentSQLx instance with the given options
func (*PersistentSQLx) GetDB ¶
func (psqlx *PersistentSQLx) GetDB() *sqlx.DB
GetDB returns the database connection
Click to show internal directories.
Click to hide internal directories.