mysql

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MysqlCommandDriver

type MysqlCommandDriver struct {
	DB                *gorm.DB
	ConnMaxLifetime   time.Duration
	MaxOpenConns      int
	MaxIdleConns      int
	ConnectionTimeout time.Duration
}

func (*MysqlCommandDriver) Close

func (m *MysqlCommandDriver) Close() error

func (*MysqlCommandDriver) Connect

func (m *MysqlCommandDriver) Connect(connectionString string) error

func (*MysqlCommandDriver) Create

func (m *MysqlCommandDriver) Create(collection string, data interface{}) error

func (*MysqlCommandDriver) Delete

func (m *MysqlCommandDriver) Delete(collection string, filter interface{}) error

func (*MysqlCommandDriver) Update

func (m *MysqlCommandDriver) Update(collection string, filter interface{}, update interface{}) error

type MysqlQueryDriver

type MysqlQueryDriver struct {
	DB                *gorm.DB
	ConnMaxLifetime   time.Duration
	MaxOpenConns      int
	MaxIdleConns      int
	ConnectionTimeout time.Duration
}

func (*MysqlQueryDriver) Close

func (m *MysqlQueryDriver) Close() error

func (*MysqlQueryDriver) Connect

func (m *MysqlQueryDriver) Connect(connectionString string) error

func (*MysqlQueryDriver) Count added in v1.3.0

func (m *MysqlQueryDriver) Count(collection string, filter interface{}) (int64, error)

func (*MysqlQueryDriver) ExecuteRawSQL added in v1.3.0

func (m *MysqlQueryDriver) ExecuteRawSQL(sql string, values ...interface{}) error

func (*MysqlQueryDriver) QueryRawSQL added in v1.3.0

func (m *MysqlQueryDriver) QueryRawSQL(sql string, values ...interface{}) ([]map[string]interface{}, error)

func (*MysqlQueryDriver) Read

func (m *MysqlQueryDriver) Read(collection string, filter interface{}) (interface{}, error)

func (*MysqlQueryDriver) ReadAll added in v1.3.0

func (m *MysqlQueryDriver) ReadAll(collection string, filter interface{}) (interface{}, error)

Jump to

Keyboard shortcuts

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