driver

package
v0.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseDriver

type DatabaseDriver string
const (
	PostgresDriver DatabaseDriver = "postgres"
	SqliteDriver   DatabaseDriver = "sqlite"
)

func ParseDBDriver

func ParseDBDriver(d string) (DatabaseDriver, error)

func (DatabaseDriver) BindVar

func (d DatabaseDriver) BindVar() sqlf.BindVar

func (DatabaseDriver) DriverName

func (d DatabaseDriver) DriverName() string

func (DatabaseDriver) IsPostgres

func (d DatabaseDriver) IsPostgres() bool

func (DatabaseDriver) IsSQLite

func (d DatabaseDriver) IsSQLite() bool

func (DatabaseDriver) String

func (d DatabaseDriver) String() string

func (DatabaseDriver) Valid

func (d DatabaseDriver) Valid() bool

Jump to

Keyboard shortcuts

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