Documentation
¶
Index ¶
- Constants
- type SQLite3
- func (s *SQLite3) Capabilities() []database.Capabilities
- func (s *SQLite3) ConnectionStringTemplate() *template.Template
- func (s *SQLite3) GetPrefab(r database.Request) (string, []any, error)
- func (s *SQLite3) GetTemplate(queryType database.RequestType) string
- func (s *SQLite3) IncreamentPlaceholder() string
- func (s *SQLite3) Name() string
- func (s *SQLite3) Quote(value string) string
- func (s *SQLite3) QuoteRune() rune
- func (s *SQLite3) RenderCurrentTimestamp() string
- func (s *SQLite3) RenderPlaceholder(index int) string
- func (s *SQLite3) RenderTypeCast() string
- func (s *SQLite3) RenderValue(value any) string
- func (s *SQLite3) ResolveType(dbType string, value []byte) (any, error)
Constants ¶
View Source
const ( PrefabDatabases = "PRAGMA database_list" PrefabTables = "SELECT name FROM sqlite_master WHERE type='table'" PrefabColumns = "PRAGMA table_info(?)" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLite3 ¶
type SQLite3 struct{}
func NewSQLite3Driver ¶
func (*SQLite3) Capabilities ¶
func (s *SQLite3) Capabilities() []database.Capabilities
Capabilities implements database.Dialect.
func (*SQLite3) ConnectionStringTemplate ¶
ConnectionString implements database.Driver.
func (*SQLite3) GetTemplate ¶
func (s *SQLite3) GetTemplate(queryType database.RequestType) string
GetTemplate implements database.Dialect.
func (*SQLite3) IncreamentPlaceholder ¶
IncreamentPlaceholder implements database.Dialect.
func (*SQLite3) RenderCurrentTimestamp ¶
RenderCurrentTimestamp implements database.Dialect.
func (*SQLite3) RenderPlaceholder ¶
RenderPlaceholder implements database.Dialect.
func (*SQLite3) RenderTypeCast ¶
RenderTypeCast implements database.Dialect.
func (*SQLite3) RenderValue ¶
RenderValue implements database.Dialect.
Click to show internal directories.
Click to hide internal directories.