drivers

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MySQLDriverName = "mysql"
View Source
const PostgresDriverName = "postgres"

Variables

This section is empty.

Functions

func NewMySQL

func NewMySQL() database.DBDriver

NewMySQL creates a new MySQL driver

func NewPostgres

func NewPostgres() database.DBDriver

NewPostgres creates a new PostgreSQL driver

Types

type MySQLDriver

type MySQLDriver struct {
	database.BaseDriver
}

MySQLDriver implements DBDriver for MySQL/MariaDB

func (*MySQLDriver) Connect

func (d *MySQLDriver) Connect(cfg *database.Config) error

Connect establishes a connection to MySQL

type PostgresDriver

type PostgresDriver struct {
	database.BaseDriver
}

PostgresDriver implements DBDriver for PostgreSQL

func (*PostgresDriver) Connect

func (d *PostgresDriver) Connect(cfg *database.Config) error

Connect establishes a connection to PostgreSQL

Jump to

Keyboard shortcuts

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