db

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DriverName added in v1.2.1

func DriverName(name string) string

DriverName maps the dialect-style names accepted in .quark.yml (and by `quark init --dialect`) to the database/sql driver names actually registered in this binary. `quark init` writes `driver: postgresql`, but the registered PostgreSQL driver is pgx, so passing the config value straight to sql.Open fails with `unknown driver "postgresql"`. Unknown names pass through untouched so custom drivers keep working.

func GetAdminQuarkClient

func GetAdminQuarkClient() (*quark.Client, error)

func GetQuarkClient

func GetQuarkClient() (*quark.Client, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL