types

package
v0.0.0-...-1506479 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindingParameter

type BindingParameter string

func NewBindingParameter

func NewBindingParameter(b BindingType, value string) BindingParameter

func (BindingParameter) String

func (b BindingParameter) String() string

type BindingType

type BindingType int
const (
	AUTOINCREMENTED BindingType = iota
	INDEXED
	COLON_NAMED
	AT_NAMED
	DOLAR_NAMED
)

type DbPath

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

func NewDbPath

func NewDbPath(schema string, table any, column string) *DbPath

func (*DbPath) StringColumn

func (d *DbPath) StringColumn() string

func (*DbPath) StringSchema

func (d *DbPath) StringSchema() string

func (*DbPath) StringTable

func (d *DbPath) StringTable() string

type LiteralValue

type LiteralValue string
const (
	NULL_VALUE              LiteralValue = "NULL"
	TRUE_VALUE              LiteralValue = "TRUE"
	FALSE_VALUE             LiteralValue = "FALSE"
	CURRENT_TIME_VALUE      LiteralValue = "CURRENT_TIME"
	CURRENT_DATE_VALUE      LiteralValue = "CURRENT_DATE"
	CURRENT_TIMESTAMP_VALUE LiteralValue = "CURRENT_TIMESTAMP"
)

func (LiteralValue) String

func (l LiteralValue) String() string

type SQLiteType

type SQLiteType string
const (
	NULL    SQLiteType = "NULL"
	TEXT    SQLiteType = "TEXT"
	INTEGER SQLiteType = "INTEGER"
	REAL    SQLiteType = "REAL"
	BLOB    SQLiteType = "BLOB"
)

func GetSQLiteType

func GetSQLiteType(t reflect.Type) (SQLiteType, bool)

getSQLiteType returns the appropriate SQLite type for a Go type

func NewSQLiteType

func NewSQLiteType(value string) SQLiteType

func (SQLiteType) String

func (t SQLiteType) String() string

type SignedNumber

type SignedNumber string

func NewSignedNumber

func NewSignedNumber[T string | int | uint | float32 | float64 | []byte | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64](value T) SignedNumber

func (SignedNumber) String

func (s SignedNumber) String() string

Jump to

Keyboard shortcuts

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