sqlitedialect

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRenameIndexUnsupported = errors.New("sqlitedialect: RENAME INDEX is not supported by SQLite")

Functions

This section is empty.

Types

type SQLite

type SQLite struct{}

SQLite implements dialect.Dialect. Error classification lives in pack/driver/sqlite, not here - see driver.ErrorDecoder.

func New

func New() SQLite

func (SQLite) AlterColumnSQL

func (SQLite) AlterColumnSQL(string, string, reflect.Type, dialect.ColumnSpec) (string, error)

func (SQLite) ColumnDefinition

func (s SQLite) ColumnDefinition(t reflect.Type, spec dialect.ColumnSpec) (string, error)

func (SQLite) ColumnTypesSQL

func (s SQLite) ColumnTypesSQL(table string) (string, []any)

func (SQLite) CurrentDatabaseSQL

func (SQLite) CurrentDatabaseSQL() string

func (SQLite) DropIndexSQL

func (s SQLite) DropIndexSQL(_, index string) string

func (SQLite) GetTablesSQL

func (SQLite) GetTablesSQL() (string, []any)

func (SQLite) HasColumnSQL

func (s SQLite) HasColumnSQL(table, column string) (string, []any)

func (SQLite) HasConstraintSQL

func (d SQLite) HasConstraintSQL(table, name string) (string, []any)

func (SQLite) HasIndexSQL

func (s SQLite) HasIndexSQL(_, index string) (string, []any)

func (SQLite) HasTableSQL

func (s SQLite) HasTableSQL(table string) (string, []any)

func (SQLite) InlinesPrimaryKey

func (SQLite) InlinesPrimaryKey(spec dialect.ColumnSpec) bool

func (SQLite) Name

func (SQLite) Name() string

func (SQLite) Placeholder

func (SQLite) Placeholder(n int) string

func (SQLite) QuoteIdent

func (SQLite) QuoteIdent(name string) string

func (SQLite) RenameIndexSQL

func (SQLite) RenameIndexSQL(string, string, string) (string, error)

func (SQLite) SupportsILike

func (SQLite) SupportsILike() bool

func (SQLite) SupportsOnConflict

func (SQLite) SupportsOnConflict() bool

func (SQLite) SupportsReturning

func (SQLite) SupportsReturning() bool

func (SQLite) SupportsRowLocking

func (SQLite) SupportsRowLocking() bool

func (SQLite) SupportsSavepoints

func (SQLite) SupportsSavepoints() bool

Jump to

Keyboard shortcuts

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