Documentation ¶
Index ¶
- type CsvCursor
- type CsvModule
- type CsvTable
- type HtmlCursor
- func (t *HtmlCursor) Close() error
- func (t *HtmlCursor) Column(context *sqlite3.SQLiteContext, col int) error
- func (t *HtmlCursor) EOF() bool
- func (t *HtmlCursor) Filter(idxNum int, idxStr string, vals []interface{}) error
- func (t *HtmlCursor) Next() error
- func (t *HtmlCursor) Rowid() (int64, error)
- type HtmlModule
- type HtmlTable
- type JSONCursor
- func (t *JSONCursor) Close() error
- func (t *JSONCursor) Column(context *sqlite3.SQLiteContext, col int) error
- func (t *JSONCursor) EOF() bool
- func (t *JSONCursor) Filter(idxNum int, idxStr string, vals []interface{}) error
- func (t *JSONCursor) Next() error
- func (t *JSONCursor) Rowid() (int64, error)
- type JSONCursorColShape
- type JSONModule
- type JSONTable
- type JSONlCursor
- func (t *JSONlCursor) Close() error
- func (t *JSONlCursor) Column(context *sqlite3.SQLiteContext, col int) error
- func (t *JSONlCursor) EOF() bool
- func (t *JSONlCursor) Filter(idxNum int, idxStr string, vals []interface{}) error
- func (t *JSONlCursor) Next() error
- func (t *JSONlCursor) Rowid() (int64, error)
- type JSONlModule
- type JSONlTable
- type LogCursor
- type LogModule
- type LogTable
- type MySQLCursor
- func (t *MySQLCursor) Close() error
- func (t *MySQLCursor) Column(context *sqlite3.SQLiteContext, col int) error
- func (t *MySQLCursor) EOF() bool
- func (t *MySQLCursor) Filter(idxNum int, idxStr string, vals []interface{}) error
- func (t *MySQLCursor) Next() error
- func (t *MySQLCursor) Rowid() (int64, error)
- type MySQLModule
- func (m *MySQLModule) Connect(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error)
- func (m *MySQLModule) Create(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error)
- func (v *MySQLModule) DestroyModule()
- func (m *MySQLModule) GetDBConnection(connectionString string) (*sql.Conn, error)
- func (m *MySQLModule) TransactionModule()
- type MySQLPlan
- type MySQLTable
- func (t *MySQLTable) Begin() error
- func (t *MySQLTable) BestIndex(cst []sqlite3.InfoConstraint, ob []sqlite3.InfoOrderBy) (*sqlite3.IndexResult, error)
- func (t *MySQLTable) Commit() error
- func (t *MySQLTable) Delete(id any) error
- func (t *MySQLTable) Destroy() error
- func (t *MySQLTable) Disconnect() error
- func (t *MySQLTable) Insert(id any, vals []any) (int64, error)
- func (t *MySQLTable) Open() (sqlite3.VTabCursor, error)
- func (t *MySQLTable) PartialUpdate() bool
- func (t *MySQLTable) Rollback() error
- func (t *MySQLTable) Update(id any, vals []any) error
- type ParquetCursor
- func (t *ParquetCursor) Close() error
- func (t *ParquetCursor) Column(context *sqlite3.SQLiteContext, col int) error
- func (t *ParquetCursor) EOF() bool
- func (t *ParquetCursor) Filter(idxNum int, idxStr string, vals []interface{}) error
- func (t *ParquetCursor) Next() error
- func (t *ParquetCursor) Rowid() (int64, error)
- type ParquetModule
- type ParquetTable
- type PostgresCursor
- func (t *PostgresCursor) Close() error
- func (t *PostgresCursor) Column(context *sqlite3.SQLiteContext, col int) error
- func (t *PostgresCursor) EOF() bool
- func (t *PostgresCursor) Filter(idxNum int, idxStr string, vals []interface{}) error
- func (t *PostgresCursor) Next() error
- func (t *PostgresCursor) Rowid() (int64, error)
- type PostgresModule
- func (m *PostgresModule) Connect(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error)
- func (m *PostgresModule) Create(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error)
- func (v *PostgresModule) DestroyModule()
- func (m *PostgresModule) GetDBConnection(connectionString string) (*pgxpool.Conn, error)
- func (m *PostgresModule) TransactionModule()
- type PostgresPlan
- type PostgresTable
- func (t *PostgresTable) Begin() error
- func (t *PostgresTable) BestIndex(cst []sqlite3.InfoConstraint, ob []sqlite3.InfoOrderBy) (*sqlite3.IndexResult, error)
- func (t *PostgresTable) Commit() error
- func (t *PostgresTable) Delete(id any) error
- func (t *PostgresTable) Destroy() error
- func (t *PostgresTable) Disconnect() error
- func (t *PostgresTable) Insert(id any, vals []any) (int64, error)
- func (t *PostgresTable) Open() (sqlite3.VTabCursor, error)
- func (t *PostgresTable) PartialUpdate() bool
- func (t *PostgresTable) Rollback() error
- func (t *PostgresTable) Update(id any, vals []any) error
- type SQLQueryToExecute
- type SQLiteCursor
- func (c *SQLiteCursor) Close() error
- func (c *SQLiteCursor) Column(context *sqlite3.SQLiteContext, col int) error
- func (c *SQLiteCursor) EOF() bool
- func (c *SQLiteCursor) Filter(idxNum int, idxStr string, vals []interface{}) error
- func (c *SQLiteCursor) Next() error
- func (c *SQLiteCursor) Rowid() (int64, error)
- type SQLiteModule
- type SQLiteTable
- func (t *SQLiteTable) BestIndex(cst []sqlite3.InfoConstraint, ob []sqlite3.InfoOrderBy) (*sqlite3.IndexResult, error)
- func (t *SQLiteTable) ClearBuffers()
- func (t *SQLiteTable) Delete(id any) error
- func (v *SQLiteTable) Destroy() error
- func (v *SQLiteTable) Disconnect() error
- func (t *SQLiteTable) FlushBuffers() error
- func (t *SQLiteTable) Insert(id any, vals []any) (int64, error)
- func (t *SQLiteTable) Open() (sqlite3.VTabCursor, error)
- func (t *SQLiteTable) PartialUpdate() bool
- func (t *SQLiteTable) Update(id any, vals []any) error
- type TomlCursor
- func (t *TomlCursor) Close() error
- func (t *TomlCursor) Column(context *sqlite3.SQLiteContext, col int) error
- func (t *TomlCursor) EOF() bool
- func (t *TomlCursor) Filter(idxNum int, idxStr string, vals []interface{}) error
- func (t *TomlCursor) Next() error
- func (t *TomlCursor) Rowid() (int64, error)
- type TomlModule
- type TomlTable
- type Valuable
- type YamlCursor
- func (t *YamlCursor) Close() error
- func (t *YamlCursor) Column(context *sqlite3.SQLiteContext, col int) error
- func (t *YamlCursor) EOF() bool
- func (t *YamlCursor) Filter(idxNum int, idxStr string, vals []interface{}) error
- func (t *YamlCursor) Next() error
- func (t *YamlCursor) Rowid() (int64, error)
- type YamlModule
- type YamlTable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CsvCursor ¶
type CsvCursor struct {
// contains filtered or unexported fields
}
type CsvModule ¶
type CsvModule struct { }
func (*CsvModule) DestroyModule ¶
func (v *CsvModule) DestroyModule()
type CsvTable ¶
type CsvTable struct {
// contains filtered or unexported fields
}
func (*CsvTable) Disconnect ¶
type HtmlCursor ¶
type HtmlCursor struct {
// contains filtered or unexported fields
}
func (*HtmlCursor) Close ¶
func (t *HtmlCursor) Close() error
func (*HtmlCursor) Column ¶
func (t *HtmlCursor) Column(context *sqlite3.SQLiteContext, col int) error
func (*HtmlCursor) EOF ¶
func (t *HtmlCursor) EOF() bool
func (*HtmlCursor) Filter ¶
func (t *HtmlCursor) Filter(idxNum int, idxStr string, vals []interface{}) error
func (*HtmlCursor) Next ¶
func (t *HtmlCursor) Next() error
func (*HtmlCursor) Rowid ¶
func (t *HtmlCursor) Rowid() (int64, error)
type HtmlModule ¶
type HtmlModule struct { }
func (*HtmlModule) Connect ¶
func (m *HtmlModule) Connect(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error)
func (*HtmlModule) Create ¶
func (m *HtmlModule) Create(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error)
func (*HtmlModule) DestroyModule ¶
func (v *HtmlModule) DestroyModule()
type HtmlTable ¶
type HtmlTable struct {
// contains filtered or unexported fields
}
func (*HtmlTable) Disconnect ¶
type JSONCursor ¶
type JSONCursor struct {
// contains filtered or unexported fields
}
func (*JSONCursor) Close ¶
func (t *JSONCursor) Close() error
func (*JSONCursor) Column ¶
func (t *JSONCursor) Column(context *sqlite3.SQLiteContext, col int) error
func (*JSONCursor) EOF ¶
func (t *JSONCursor) EOF() bool
func (*JSONCursor) Filter ¶
func (t *JSONCursor) Filter(idxNum int, idxStr string, vals []interface{}) error
func (*JSONCursor) Next ¶
func (t *JSONCursor) Next() error
func (*JSONCursor) Rowid ¶
func (t *JSONCursor) Rowid() (int64, error)
type JSONCursorColShape ¶
type JSONCursorColShape struct { }
type JSONModule ¶
type JSONModule struct {
// contains filtered or unexported fields
}
func (*JSONModule) Connect ¶
func (m *JSONModule) Connect(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error)
func (*JSONModule) Create ¶
func (m *JSONModule) Create(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error)
func (*JSONModule) DestroyModule ¶
func (v *JSONModule) DestroyModule()
type JSONTable ¶
type JSONTable struct {
// contains filtered or unexported fields
}
func (*JSONTable) Disconnect ¶
type JSONlCursor ¶
type JSONlCursor struct {
// contains filtered or unexported fields
}
func (*JSONlCursor) Close ¶
func (t *JSONlCursor) Close() error
func (*JSONlCursor) Column ¶
func (t *JSONlCursor) Column(context *sqlite3.SQLiteContext, col int) error
func (*JSONlCursor) EOF ¶
func (t *JSONlCursor) EOF() bool
func (*JSONlCursor) Filter ¶
func (t *JSONlCursor) Filter(idxNum int, idxStr string, vals []interface{}) error
func (*JSONlCursor) Next ¶
func (t *JSONlCursor) Next() error
func (*JSONlCursor) Rowid ¶
func (t *JSONlCursor) Rowid() (int64, error)
type JSONlModule ¶
type JSONlModule struct { }
func (*JSONlModule) Connect ¶
func (m *JSONlModule) Connect(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error)
func (*JSONlModule) Create ¶
func (m *JSONlModule) Create(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error)
func (*JSONlModule) DestroyModule ¶
func (v *JSONlModule) DestroyModule()
type JSONlTable ¶
type JSONlTable struct {
// contains filtered or unexported fields
}
func (*JSONlTable) BestIndex ¶
func (t *JSONlTable) BestIndex(cst []sqlite3.InfoConstraint, ob []sqlite3.InfoOrderBy) (*sqlite3.IndexResult, error)
func (*JSONlTable) Destroy ¶
func (t *JSONlTable) Destroy() error
func (*JSONlTable) Disconnect ¶
func (t *JSONlTable) Disconnect() error
func (*JSONlTable) Open ¶
func (t *JSONlTable) Open() (sqlite3.VTabCursor, error)
type LogCursor ¶ added in v0.1.2
type LogCursor struct {
// contains filtered or unexported fields
}
type LogModule ¶ added in v0.1.2
type LogModule struct { }
func (*LogModule) DestroyModule ¶ added in v0.1.2
func (v *LogModule) DestroyModule()
type LogTable ¶ added in v0.1.2
type LogTable struct {
// contains filtered or unexported fields
}
func (*LogTable) Disconnect ¶ added in v0.1.2
type MySQLCursor ¶ added in v0.1.4
type MySQLCursor struct {
// contains filtered or unexported fields
}
func (*MySQLCursor) Close ¶ added in v0.1.4
func (t *MySQLCursor) Close() error
func (*MySQLCursor) Column ¶ added in v0.1.4
func (t *MySQLCursor) Column(context *sqlite3.SQLiteContext, col int) error
func (*MySQLCursor) EOF ¶ added in v0.1.4
func (t *MySQLCursor) EOF() bool
func (*MySQLCursor) Filter ¶ added in v0.1.4
func (t *MySQLCursor) Filter(idxNum int, idxStr string, vals []interface{}) error
func (*MySQLCursor) Next ¶ added in v0.1.4
func (t *MySQLCursor) Next() error
func (*MySQLCursor) Rowid ¶ added in v0.1.4
func (t *MySQLCursor) Rowid() (int64, error)
type MySQLModule ¶ added in v0.1.4
type MySQLModule struct {
// contains filtered or unexported fields
}
func (*MySQLModule) Connect ¶ added in v0.1.4
func (m *MySQLModule) Connect(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error)
func (*MySQLModule) Create ¶ added in v0.1.4
func (m *MySQLModule) Create(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error)
func (*MySQLModule) DestroyModule ¶ added in v0.1.4
func (v *MySQLModule) DestroyModule()
func (*MySQLModule) GetDBConnection ¶ added in v0.1.4
func (m *MySQLModule) GetDBConnection(connectionString string) (*sql.Conn, error)
Retrieve or create a connection from the pooler of the pooler
func (*MySQLModule) TransactionModule ¶ added in v0.1.4
func (m *MySQLModule) TransactionModule()
type MySQLTable ¶ added in v0.1.4
type MySQLTable struct {
// contains filtered or unexported fields
}
func (*MySQLTable) Begin ¶ added in v0.1.4
func (t *MySQLTable) Begin() error
Transactions related functions
func (*MySQLTable) BestIndex ¶ added in v0.1.4
func (t *MySQLTable) BestIndex(cst []sqlite3.InfoConstraint, ob []sqlite3.InfoOrderBy) (*sqlite3.IndexResult, error)
A function that will be called several times to check the best way to access the data. This function is called with different constraints and order by clauses
To find the method, we will ask the database to explain the query and return the best method
func (*MySQLTable) Commit ¶ added in v0.1.4
func (t *MySQLTable) Commit() error
func (*MySQLTable) Delete ¶ added in v0.1.4
func (t *MySQLTable) Delete(id any) error
func (*MySQLTable) Destroy ¶ added in v0.1.4
func (t *MySQLTable) Destroy() error
func (*MySQLTable) Disconnect ¶ added in v0.1.4
func (t *MySQLTable) Disconnect() error
func (*MySQLTable) Insert ¶ added in v0.1.4
func (t *MySQLTable) Insert(id any, vals []any) (int64, error)
DML related functions
func (*MySQLTable) Open ¶ added in v0.1.4
func (t *MySQLTable) Open() (sqlite3.VTabCursor, error)
func (*MySQLTable) PartialUpdate ¶ added in v0.1.4
func (t *MySQLTable) PartialUpdate() bool
Check if the table supports partial updates
Partial updates are updates that only update the columns that are provided Other columns in the Update call are replaced with a nil value
func (*MySQLTable) Rollback ¶ added in v0.1.4
func (t *MySQLTable) Rollback() error
type ParquetCursor ¶
type ParquetCursor struct {
// contains filtered or unexported fields
}
func (*ParquetCursor) Close ¶
func (t *ParquetCursor) Close() error
func (*ParquetCursor) Column ¶
func (t *ParquetCursor) Column(context *sqlite3.SQLiteContext, col int) error
func (*ParquetCursor) EOF ¶
func (t *ParquetCursor) EOF() bool
func (*ParquetCursor) Filter ¶
func (t *ParquetCursor) Filter(idxNum int, idxStr string, vals []interface{}) error
func (*ParquetCursor) Next ¶
func (t *ParquetCursor) Next() error
func (*ParquetCursor) Rowid ¶
func (t *ParquetCursor) Rowid() (int64, error)
type ParquetModule ¶
type ParquetModule struct { }
func (*ParquetModule) Connect ¶
func (m *ParquetModule) Connect(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error)
func (*ParquetModule) Create ¶
func (m *ParquetModule) Create(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error)
func (*ParquetModule) DestroyModule ¶
func (v *ParquetModule) DestroyModule()
type ParquetTable ¶
type ParquetTable struct {
// contains filtered or unexported fields
}
func (*ParquetTable) BestIndex ¶
func (t *ParquetTable) BestIndex(cst []sqlite3.InfoConstraint, ob []sqlite3.InfoOrderBy) (*sqlite3.IndexResult, error)
func (*ParquetTable) Destroy ¶
func (t *ParquetTable) Destroy() error
func (*ParquetTable) Disconnect ¶
func (t *ParquetTable) Disconnect() error
func (*ParquetTable) Open ¶
func (t *ParquetTable) Open() (sqlite3.VTabCursor, error)
type PostgresCursor ¶ added in v0.1.4
type PostgresCursor struct {
// contains filtered or unexported fields
}
func (*PostgresCursor) Close ¶ added in v0.1.4
func (t *PostgresCursor) Close() error
func (*PostgresCursor) Column ¶ added in v0.1.4
func (t *PostgresCursor) Column(context *sqlite3.SQLiteContext, col int) error
func (*PostgresCursor) EOF ¶ added in v0.1.4
func (t *PostgresCursor) EOF() bool
func (*PostgresCursor) Filter ¶ added in v0.1.4
func (t *PostgresCursor) Filter(idxNum int, idxStr string, vals []interface{}) error
func (*PostgresCursor) Next ¶ added in v0.1.4
func (t *PostgresCursor) Next() error
func (*PostgresCursor) Rowid ¶ added in v0.1.4
func (t *PostgresCursor) Rowid() (int64, error)
type PostgresModule ¶ added in v0.1.4
type PostgresModule struct {
// contains filtered or unexported fields
}
func (*PostgresModule) Connect ¶ added in v0.1.4
func (m *PostgresModule) Connect(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error)
func (*PostgresModule) Create ¶ added in v0.1.4
func (m *PostgresModule) Create(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error)
func (*PostgresModule) DestroyModule ¶ added in v0.1.4
func (v *PostgresModule) DestroyModule()
func (*PostgresModule) GetDBConnection ¶ added in v0.1.4
func (m *PostgresModule) GetDBConnection(connectionString string) (*pgxpool.Conn, error)
Retrieve or create a connection from the pooler of the pooler
func (*PostgresModule) TransactionModule ¶ added in v0.1.4
func (m *PostgresModule) TransactionModule()
type PostgresPlan ¶ added in v0.1.4
type PostgresTable ¶ added in v0.1.4
type PostgresTable struct {
// contains filtered or unexported fields
}
func (*PostgresTable) Begin ¶ added in v0.1.4
func (t *PostgresTable) Begin() error
Transactions related functions
func (*PostgresTable) BestIndex ¶ added in v0.1.4
func (t *PostgresTable) BestIndex(cst []sqlite3.InfoConstraint, ob []sqlite3.InfoOrderBy) (*sqlite3.IndexResult, error)
A function that will be called several times to check the best way to access the data. This function is called with different constraints and order by clauses
To find the method, we will ask the database to explain the query and return the best method
func (*PostgresTable) Commit ¶ added in v0.1.4
func (t *PostgresTable) Commit() error
func (*PostgresTable) Delete ¶ added in v0.1.4
func (t *PostgresTable) Delete(id any) error
func (*PostgresTable) Destroy ¶ added in v0.1.4
func (t *PostgresTable) Destroy() error
func (*PostgresTable) Disconnect ¶ added in v0.1.4
func (t *PostgresTable) Disconnect() error
func (*PostgresTable) Insert ¶ added in v0.1.4
func (t *PostgresTable) Insert(id any, vals []any) (int64, error)
DML related functions
func (*PostgresTable) Open ¶ added in v0.1.4
func (t *PostgresTable) Open() (sqlite3.VTabCursor, error)
func (*PostgresTable) PartialUpdate ¶ added in v0.1.4
func (t *PostgresTable) PartialUpdate() bool
Check if the table supports partial updates
Partial updates are updates that only update the columns that are provided Other columns in the Update call are replaced with a nil value
func (*PostgresTable) Rollback ¶ added in v0.1.4
func (t *PostgresTable) Rollback() error
type SQLQueryToExecute ¶ added in v0.1.4
type SQLiteCursor ¶
type SQLiteCursor struct {
// contains filtered or unexported fields
}
SQLiteCursor holds the information needed for the Column, Filter, EOF and Next methods
func (*SQLiteCursor) Close ¶
func (c *SQLiteCursor) Close() error
Close is called when the cursor is no longer needed
func (*SQLiteCursor) Column ¶
func (c *SQLiteCursor) Column(context *sqlite3.SQLiteContext, col int) error
Column is called when a column is queried
It should return the value of the column
func (*SQLiteCursor) EOF ¶
func (c *SQLiteCursor) EOF() bool
EOF is called after each row is queried to check if there are more rows
func (*SQLiteCursor) Filter ¶
func (c *SQLiteCursor) Filter(idxNum int, idxStr string, vals []interface{}) error
func (*SQLiteCursor) Next ¶
func (c *SQLiteCursor) Next() error
Next is called to move the cursor to the next row
If noMoreRows is set to false, and the cursor is at the end of the rows, Next will ask the plugin for more rows
If noMoreRows is set to true, Next will set EOF to true
func (*SQLiteCursor) Rowid ¶
func (c *SQLiteCursor) Rowid() (int64, error)
RowID is called to get the row ID of the current row
type SQLiteModule ¶
type SQLiteModule struct { PluginPath string PluginArgs []string PluginManifest rpc.PluginManifest ConnectionIndex int TableIndex int UserConfig rpc.PluginConfig Logger hclog.Logger ConnectionPool *rpc.ConnectionPool Stderr io.Writer Table *SQLiteTable // contains filtered or unexported fields }
SQLiteModule is a struct that holds the information about the SQLite module
For each table that the plugin provides and for each profile, a new SQLiteModule should be created and registered in the main program
func (*SQLiteModule) Connect ¶
func (m *SQLiteModule) Connect(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error)
Connect is called when the virtual table is connected
Because it's an eponymous-only module, the method must be identical to Create
func (*SQLiteModule) Create ¶
func (m *SQLiteModule) Create(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error)
Create is called when the virtual table is created e.g. CREATE VIRTUAL TABLE or SELECT...FROM(epo_table)
Its main job is to create a new RPC client and return the needed information for the SQLite virtual table methods
func (*SQLiteModule) DestroyModule ¶
func (v *SQLiteModule) DestroyModule()
func (*SQLiteModule) EponymousOnlyModule ¶
func (m *SQLiteModule) EponymousOnlyModule()
EponymousOnlyModule is a method that is used to mark the table as eponymous-only
See https://www.sqlite.org/vtab.html#eponymous_virtual_tables for more information
type SQLiteTable ¶
type SQLiteTable struct { PluginPath string ConnectionPool *rpc.ConnectionPool // contains filtered or unexported fields }
SQLiteTable that holds the information needed for the BestIndex and Open methods
func (*SQLiteTable) BestIndex ¶
func (t *SQLiteTable) BestIndex(cst []sqlite3.InfoConstraint, ob []sqlite3.InfoOrderBy) (*sqlite3.IndexResult, error)
BestIndex is called when the virtual table is queried to figure out the best way to query the table
However, we don't use it that way but only to serialize the constraints for the Filter method
func (*SQLiteTable) ClearBuffers ¶ added in v0.1.5
func (t *SQLiteTable) ClearBuffers()
Remove all the rows from the insert, update and delete buffers
Useful when a buffer is faulty and we want to retry the query
func (*SQLiteTable) Delete ¶
func (t *SQLiteTable) Delete(id any) error
func (*SQLiteTable) Destroy ¶
func (v *SQLiteTable) Destroy() error
func (*SQLiteTable) Disconnect ¶
func (v *SQLiteTable) Disconnect() error
These methods are not used in this plugin
func (*SQLiteTable) FlushBuffers ¶ added in v0.1.5
func (t *SQLiteTable) FlushBuffers() error
FlushBuffers flushes the buffers of inserts, updates and deletes
func (*SQLiteTable) Open ¶
func (t *SQLiteTable) Open() (sqlite3.VTabCursor, error)
Open is called when a new cursor is opened
It should return a new cursor
func (*SQLiteTable) PartialUpdate ¶ added in v0.1.4
func (t *SQLiteTable) PartialUpdate() bool
type TomlCursor ¶
type TomlCursor struct {
// contains filtered or unexported fields
}
func (*TomlCursor) Close ¶
func (t *TomlCursor) Close() error
func (*TomlCursor) Column ¶
func (t *TomlCursor) Column(context *sqlite3.SQLiteContext, col int) error
func (*TomlCursor) EOF ¶
func (t *TomlCursor) EOF() bool
func (*TomlCursor) Filter ¶
func (t *TomlCursor) Filter(idxNum int, idxStr string, vals []interface{}) error
func (*TomlCursor) Next ¶
func (t *TomlCursor) Next() error
func (*TomlCursor) Rowid ¶
func (t *TomlCursor) Rowid() (int64, error)
type TomlModule ¶
type TomlModule struct { }
func (*TomlModule) Connect ¶
func (m *TomlModule) Connect(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error)
func (*TomlModule) Create ¶
func (m *TomlModule) Create(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error)
func (*TomlModule) DestroyModule ¶
func (v *TomlModule) DestroyModule()
type TomlTable ¶
type TomlTable struct {
// contains filtered or unexported fields
}
func (*TomlTable) Disconnect ¶
type YamlCursor ¶
type YamlCursor struct {
// contains filtered or unexported fields
}
func (*YamlCursor) Close ¶
func (t *YamlCursor) Close() error
func (*YamlCursor) Column ¶
func (t *YamlCursor) Column(context *sqlite3.SQLiteContext, col int) error
func (*YamlCursor) EOF ¶
func (t *YamlCursor) EOF() bool
func (*YamlCursor) Filter ¶
func (t *YamlCursor) Filter(idxNum int, idxStr string, vals []interface{}) error
func (*YamlCursor) Next ¶
func (t *YamlCursor) Next() error
func (*YamlCursor) Rowid ¶
func (t *YamlCursor) Rowid() (int64, error)
type YamlModule ¶
type YamlModule struct { }
func (*YamlModule) Connect ¶
func (m *YamlModule) Connect(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error)
func (*YamlModule) Create ¶
func (m *YamlModule) Create(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error)
func (*YamlModule) DestroyModule ¶
func (v *YamlModule) DestroyModule()