dqlite

package
v2.0.0-...-345fa11 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DriverName = "dqlite"

DriverName is the default driver name for DQLite.

Variables

This section is empty.

Functions

func Open

func Open(db *sql.DB) gorm.Dialector

Types

type Dialector

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

func (Dialector) BindVarTo

func (wrapper Dialector) BindVarTo(writer clause.Writer, stmt *gorm.Statement, v interface{})

func (Dialector) ClauseBuilders

func (wrapper Dialector) ClauseBuilders() map[string]clause.ClauseBuilder

func (Dialector) DataTypeOf

func (wrapper Dialector) DataTypeOf(field *schema.Field) string

func (Dialector) DefaultValueOf

func (wrapper Dialector) DefaultValueOf(field *schema.Field) clause.Expression

func (Dialector) Explain

func (wrapper Dialector) Explain(sql string, vars ...interface{}) string

func (Dialector) Initialize

func (wrapper Dialector) Initialize(db *gorm.DB) (err error)

func (Dialector) Migrator

func (wrapper Dialector) Migrator(db *gorm.DB) gorm.Migrator

func (Dialector) Name

func (wrapper Dialector) Name() string

func (Dialector) QuoteTo

func (wrapper Dialector) QuoteTo(writer clause.Writer, str string)

func (Dialector) RollbackTo

func (wrapper Dialector) RollbackTo(tx *gorm.DB, name string) error

func (Dialector) SavePoint

func (wrapper Dialector) SavePoint(tx *gorm.DB, name string) error

Jump to

Keyboard shortcuts

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