Documentation
¶
Index ¶
- type SQLite
- func (s *SQLite) BuildBulkDelete(table string, where *ast.WhereClause) dialect.Result
- func (s *SQLite) BuildBulkInsert(table string, columns []string, rows [][]any) dialect.Result
- func (s *SQLite) BuildBulkSoftDelete(table string, where *ast.WhereClause) dialect.Result
- func (s *SQLite) BuildBulkUpdate(table string, sets []dialect.ColumnValue, where *ast.WhereClause) dialect.Result
- func (s *SQLite) BuildBulkUpsert(table string, columns []string, rows [][]any, conflictCols []string, ...) dialect.Result
- func (s *SQLite) BuildDelete(table string, pkColumn string, pkValue any) dialect.Result
- func (s *SQLite) BuildInsert(table string, columns []string, values []any, _ []string) dialect.Result
- func (s *SQLite) BuildSelect(node ast.SelectNode) dialect.Result
- func (s *SQLite) BuildSoftDelete(table string, pkColumn string, pkValue any) dialect.Result
- func (s *SQLite) BuildUpdate(table string, changes []dialect.ColumnValue, pkColumn string, pkValue any) dialect.Result
- func (s *SQLite) BuildUpdateVersioned(table string, changes []dialect.ColumnValue, pkColumn string, pkValue any, ...) dialect.Result
- func (s *SQLite) Explain(query string) (string, bool)
- func (s *SQLite) Now() string
- func (s *SQLite) SupportsReturning() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLite ¶
type SQLite struct{}
func (*SQLite) BuildBulkDelete ¶
func (*SQLite) BuildBulkInsert ¶
func (*SQLite) BuildBulkSoftDelete ¶
func (*SQLite) BuildBulkUpdate ¶
func (s *SQLite) BuildBulkUpdate(table string, sets []dialect.ColumnValue, where *ast.WhereClause) dialect.Result
func (*SQLite) BuildBulkUpsert ¶
func (*SQLite) BuildDelete ¶
func (*SQLite) BuildInsert ¶
func (*SQLite) BuildSelect ¶
func (s *SQLite) BuildSelect(node ast.SelectNode) dialect.Result
func (*SQLite) BuildSoftDelete ¶
func (*SQLite) BuildUpdate ¶
func (*SQLite) BuildUpdateVersioned ¶
func (s *SQLite) BuildUpdateVersioned(table string, changes []dialect.ColumnValue, pkColumn string, pkValue any, versionCol string, currentVersion int) dialect.Result
BuildUpdateVersioned generates a versioned UPDATE for SQLite. SQLite does not support RETURNING, so the new version cannot be retrieved from the statement itself; the caller must increment the version client-side.
func (*SQLite) SupportsReturning ¶
Click to show internal directories.
Click to hide internal directories.