db_drivers

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQLDriver

type MySQLDriver struct {
	// contains filtered or unexported fields
}

MySQLDriver struct

func (*MySQLDriver) Clone

func (*MySQLDriver) Config

func (d *MySQLDriver) Config() *db_config.DBConfig

func (*MySQLDriver) Connect

func (d *MySQLDriver) Connect(dbConfig db_config.DBConfig) error

Connect method to connect to MySQL database

func (*MySQLDriver) DB

func (d *MySQLDriver) DB() *gorm.DB

func (*MySQLDriver) MigrateDriver

func (d *MySQLDriver) MigrateDriver() (database.Driver, error)

func (*MySQLDriver) Name

func (d *MySQLDriver) Name() string

func (*MySQLDriver) SqlDB

func (d *MySQLDriver) SqlDB() (*sql.DB, error)

type PostgresDriver

type PostgresDriver struct {
	// contains filtered or unexported fields
}

PostgresDriver struct

func (*PostgresDriver) Clone

func (*PostgresDriver) Config

func (d *PostgresDriver) Config() *db_config.DBConfig

func (*PostgresDriver) Connect

func (d *PostgresDriver) Connect(dbConfig db_config.DBConfig) error

Connect method to connect to PostgreSQL database

func (*PostgresDriver) DB

func (d *PostgresDriver) DB() *gorm.DB

func (*PostgresDriver) MigrateDriver

func (d *PostgresDriver) MigrateDriver() (database.Driver, error)

func (*PostgresDriver) Name

func (d *PostgresDriver) Name() string

func (*PostgresDriver) SqlDB

func (d *PostgresDriver) SqlDB() (*sql.DB, error)

type SQLiteDriver

type SQLiteDriver struct {
	// contains filtered or unexported fields
}

SQLiteDriver struct

func (*SQLiteDriver) Clone

func (*SQLiteDriver) Config

func (d *SQLiteDriver) Config() *db_config.DBConfig

func (*SQLiteDriver) Connect

func (d *SQLiteDriver) Connect(dbConfig db_config.DBConfig) error

Connect method to connect to SQLite database

func (*SQLiteDriver) DB

func (d *SQLiteDriver) DB() *gorm.DB

func (*SQLiteDriver) MigrateDriver

func (d *SQLiteDriver) MigrateDriver() (database.Driver, error)

func (*SQLiteDriver) Name

func (d *SQLiteDriver) Name() string

func (*SQLiteDriver) SqlDB

func (d *SQLiteDriver) SqlDB() (*sql.DB, error)

Jump to

Keyboard shortcuts

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