Documentation
¶
Index ¶
- func NewSqlite3Plugin() *engine.Plugin
- type DateTimeString
- type Sqlite3Plugin
- func (p *Sqlite3Plugin) ConvertRawToRows(rows *sql.Rows) (*engine.GetRowsResult, error)
- func (p *Sqlite3Plugin) ConvertStringValue(value, columnType string) (interface{}, error)
- func (p *Sqlite3Plugin) ConvertStringValueDuringMap(value, columnType string) (interface{}, error)
- func (p *Sqlite3Plugin) DB(config *engine.PluginConfig) (*gorm.DB, error)
- func (p *Sqlite3Plugin) EscapeSpecificIdentifier(identifier string) string
- func (p *Sqlite3Plugin) FormTableName(schema string, storageUnit string) string
- func (p *Sqlite3Plugin) GetAllSchemas(config *engine.PluginConfig) ([]string, error)
- func (p *Sqlite3Plugin) GetAllSchemasQuery() string
- func (p *Sqlite3Plugin) GetColTypeQuery() string
- func (p *Sqlite3Plugin) GetColumnConstraints(config *engine.PluginConfig, schema string, storageUnit string) (map[string]map[string]interface{}, error)
- func (p *Sqlite3Plugin) GetCreateTableQuery(schema string, storageUnit string, columns []engine.Record) string
- func (p *Sqlite3Plugin) GetDatabases(config *engine.PluginConfig) ([]string, error)
- func (p *Sqlite3Plugin) GetGraphQueryDB(db *gorm.DB, schema string) *gorm.DB
- func (p *Sqlite3Plugin) GetPlaceholder(index int) string
- func (p *Sqlite3Plugin) GetPrimaryKeyColQuery() string
- func (p *Sqlite3Plugin) GetSchemaTableQuery() string
- func (p *Sqlite3Plugin) GetSupportedColumnDataTypes() mapset.Set[string]
- func (p *Sqlite3Plugin) GetSupportedOperators() map[string]string
- func (p *Sqlite3Plugin) GetTableInfoQuery() string
- func (p *Sqlite3Plugin) GetTableNameAndAttributes(rows *sql.Rows, db *gorm.DB) (string, []engine.Record)
- func (p *Sqlite3Plugin) RawExecute(config *engine.PluginConfig, query string) (*engine.GetRowsResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSqlite3Plugin ¶
Types ¶
type DateTimeString ¶
type DateTimeString string
DateTimeString is a custom type that stores datetime values as plain strings without any parsing or formatting. This is needed because SQLite stores datetime values as TEXT and we want to preserve the exact format.
func (*DateTimeString) Scan ¶
func (ds *DateTimeString) Scan(value interface{}) error
Scan implements sql.Scanner interface to read datetime values as strings
type Sqlite3Plugin ¶
type Sqlite3Plugin struct {
gorm_plugin.GormPlugin
}
func (*Sqlite3Plugin) ConvertRawToRows ¶
func (p *Sqlite3Plugin) ConvertRawToRows(rows *sql.Rows) (*engine.GetRowsResult, error)
ConvertRawToRows overrides the parent to handle SQLite datetime columns specially
func (*Sqlite3Plugin) ConvertStringValue ¶
func (p *Sqlite3Plugin) ConvertStringValue(value, columnType string) (interface{}, error)
ConvertStringValue overrides the base GORM implementation to preserve datetime strings
func (*Sqlite3Plugin) ConvertStringValueDuringMap ¶
func (p *Sqlite3Plugin) ConvertStringValueDuringMap(value, columnType string) (interface{}, error)
func (*Sqlite3Plugin) DB ¶
func (p *Sqlite3Plugin) DB(config *engine.PluginConfig) (*gorm.DB, error)
func (*Sqlite3Plugin) EscapeSpecificIdentifier ¶
func (p *Sqlite3Plugin) EscapeSpecificIdentifier(identifier string) string
func (*Sqlite3Plugin) FormTableName ¶
func (p *Sqlite3Plugin) FormTableName(schema string, storageUnit string) string
func (*Sqlite3Plugin) GetAllSchemas ¶
func (p *Sqlite3Plugin) GetAllSchemas(config *engine.PluginConfig) ([]string, error)
func (*Sqlite3Plugin) GetAllSchemasQuery ¶
func (p *Sqlite3Plugin) GetAllSchemasQuery() string
func (*Sqlite3Plugin) GetColTypeQuery ¶
func (p *Sqlite3Plugin) GetColTypeQuery() string
func (*Sqlite3Plugin) GetColumnConstraints ¶
func (p *Sqlite3Plugin) GetColumnConstraints(config *engine.PluginConfig, schema string, storageUnit string) (map[string]map[string]interface{}, error)
GetColumnConstraints retrieves column constraints for SQLite tables
func (*Sqlite3Plugin) GetCreateTableQuery ¶
func (*Sqlite3Plugin) GetDatabases ¶
func (p *Sqlite3Plugin) GetDatabases(config *engine.PluginConfig) ([]string, error)
func (*Sqlite3Plugin) GetGraphQueryDB ¶
func (*Sqlite3Plugin) GetPlaceholder ¶
func (p *Sqlite3Plugin) GetPlaceholder(index int) string
func (*Sqlite3Plugin) GetPrimaryKeyColQuery ¶
func (p *Sqlite3Plugin) GetPrimaryKeyColQuery() string
func (*Sqlite3Plugin) GetSchemaTableQuery ¶
func (p *Sqlite3Plugin) GetSchemaTableQuery() string
func (*Sqlite3Plugin) GetSupportedColumnDataTypes ¶
func (p *Sqlite3Plugin) GetSupportedColumnDataTypes() mapset.Set[string]
func (*Sqlite3Plugin) GetSupportedOperators ¶
func (p *Sqlite3Plugin) GetSupportedOperators() map[string]string
func (*Sqlite3Plugin) GetTableInfoQuery ¶
func (p *Sqlite3Plugin) GetTableInfoQuery() string
func (*Sqlite3Plugin) GetTableNameAndAttributes ¶
func (*Sqlite3Plugin) RawExecute ¶
func (p *Sqlite3Plugin) RawExecute(config *engine.PluginConfig, query string) (*engine.GetRowsResult, error)
Click to show internal directories.
Click to hide internal directories.