driver

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	Open() (*sql.DB, error)
}

func New

func New(dsn string, iamAuth bool) (Driver, error)

type MySQL

type MySQL struct {
	DSN     string
	IAMAuth bool
}

func (*MySQL) Open

func (dri *MySQL) Open() (*sql.DB, error)

type PostgreSQL

type PostgreSQL struct {
	DSN     string
	IAMAuth bool
}

func (*PostgreSQL) Open

func (dri *PostgreSQL) Open() (*sql.DB, error)

type SQLite

type SQLite struct {
	DSN string
}

func (*SQLite) Open

func (dri *SQLite) Open() (*sql.DB, error)

Jump to

Keyboard shortcuts

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