sqlx

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MySQLDialect     = "mysql"
	MariaDBDialect   = MySQLDialect
	PostgresDialect  = "postgres"
	OracleDialect    = "oracle"
	SQLServerDialect = "mssql"
)

Variables

This section is empty.

Functions

func IsDCL added in v0.0.3

func IsDCL(s string) bool

func IsDDL added in v0.0.3

func IsDDL(s string) bool

func IsDML added in v0.0.3

func IsDML(s string) bool

func IsDatabaseConnected

func IsDatabaseConnected(ctx context.Context, db *sql.DB) (perr error)

func IsEmptyError added in v0.0.3

func IsEmptyError(err error) bool

func LoadDatabase

func LoadDatabase(addr string) (drv string, db *sql.DB, err error)

func ParseAddress

func ParseAddress(addr string) (drv, dsn string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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