Documentation
¶
Index ¶
- func NewMySql(connectionString string) (databases.Database, error)
- func NewPostgres(connectionString string) (databases.Database, error)
- type BigQuery
- func (b BigQuery) Close(ctx context.Context) error
- func (b BigQuery) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (b BigQuery) ListColumns(ctx context.Context, table string) ([]string, error)
- func (b BigQuery) ListTables(ctx context.Context) ([]string, error)
- func (b BigQuery) ListViews(ctx context.Context) ([]string, error)
- func (b BigQuery) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (b BigQuery) ReturnFullPathRequirement(tableName string) string
- func (b BigQuery) SeedsCreateTableQuery(tableName string, columns []string) (string, error)
- func (b BigQuery) SeedsDropTableQuery(tableName string) string
- func (b BigQuery) SeedsInsertIntoTableQuery(tableName string, columns []string, values [][]string) (string, error)
- type DuckDB
- func (db *DuckDB) Close(ctx context.Context) error
- func (db *DuckDB) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (db *DuckDB) ListColumns(ctx context.Context, table string) (columns []string, err error)
- func (db *DuckDB) ListTables(ctx context.Context) (tables []string, err error)
- func (db *DuckDB) ListViews(ctx context.Context) (views []string, err error)
- func (db *DuckDB) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (db *DuckDB) ReturnFullPathRequirement(tableName string) string
- func (db *DuckDB) SeedsCreateTableQuery(tableName string, columns []string) (string, error)
- func (db *DuckDB) SeedsDropTableQuery(tableName string) string
- func (db *DuckDB) SeedsInsertIntoTableQuery(tableName string, columns []string, values [][]string) (string, error)
- type Mysql
- func (m Mysql) Close(ctx context.Context) error
- func (m Mysql) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (m Mysql) ListColumns(ctx context.Context, table string) ([]string, error)
- func (m Mysql) ListTables(ctx context.Context) ([]string, error)
- func (m Mysql) ListViews(ctx context.Context) ([]string, error)
- func (m Mysql) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (m Mysql) ReturnFullPathRequirement(tableName string) string
- func (m Mysql) SeedsCreateTableQuery(tableName string, columns []string) (string, error)
- func (m Mysql) SeedsDropTableQuery(tableName string) string
- func (m Mysql) SeedsInsertIntoTableQuery(tableName string, columns []string, values [][]string) (string, error)
- type Postgres
- func (p Postgres) Close(ctx context.Context) error
- func (p Postgres) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (p Postgres) ListColumns(ctx context.Context, table string) ([]string, error)
- func (p Postgres) ListTables(ctx context.Context) ([]string, error)
- func (p Postgres) ListViews(ctx context.Context) ([]string, error)
- func (p Postgres) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (p Postgres) ReturnFullPathRequirement(tableName string) string
- func (p Postgres) SeedsCreateTableQuery(tableName string, columns []string) (string, error)
- func (p Postgres) SeedsDropTableQuery(tableName string) string
- func (p Postgres) SeedsInsertIntoTableQuery(tableName string, columns []string, values [][]string) (string, error)
- type SQLLite
- func (db *SQLLite) Close(ctx context.Context) error
- func (db *SQLLite) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (db *SQLLite) ListColumns(ctx context.Context, table string) (columns []string, err error)
- func (db *SQLLite) ListTables(ctx context.Context) (tables []string, err error)
- func (db *SQLLite) ListViews(ctx context.Context) (views []string, err error)
- func (db *SQLLite) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (db *SQLLite) ReturnFullPathRequirement(tableName string) string
- func (db *SQLLite) SeedsCreateTableQuery(tableName string, columns []string) (string, error)
- func (db *SQLLite) SeedsDropTableQuery(tableName string) string
- func (db *SQLLite) SeedsInsertIntoTableQuery(tableName string, columns []string, values [][]string) (string, error)
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BigQuery ¶
type BigQuery struct {
// contains filtered or unexported fields
}
func NewBigQuery ¶
func (BigQuery) ExecContext ¶
func (BigQuery) ListColumns ¶
func (BigQuery) QueryContext ¶
func (BigQuery) ReturnFullPathRequirement ¶
func (BigQuery) SeedsCreateTableQuery ¶
func (BigQuery) SeedsDropTableQuery ¶
type DuckDB ¶
func (*DuckDB) ExecContext ¶
func (*DuckDB) ListColumns ¶
func (*DuckDB) ListTables ¶
ListTables implements the interface Database
func (*DuckDB) QueryContext ¶
func (*DuckDB) ReturnFullPathRequirement ¶
func (*DuckDB) SeedsCreateTableQuery ¶
func (*DuckDB) SeedsDropTableQuery ¶
type Mysql ¶
type Mysql struct {
// contains filtered or unexported fields
}
func (Mysql) ExecContext ¶
func (Mysql) ListColumns ¶
func (Mysql) QueryContext ¶
func (Mysql) ReturnFullPathRequirement ¶
func (Mysql) SeedsCreateTableQuery ¶
func (Mysql) SeedsDropTableQuery ¶
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}
func (Postgres) ExecContext ¶
func (Postgres) ListColumns ¶
func (Postgres) QueryContext ¶
func (Postgres) ReturnFullPathRequirement ¶
func (Postgres) SeedsCreateTableQuery ¶
func (Postgres) SeedsDropTableQuery ¶
type SQLLite ¶
func NewSqlLite ¶
func NewSqlLiteInMemory ¶
NewSqlLiteInMemory returns an in-memory sqlite instance through the call of NewSqlLite
func (*SQLLite) ExecContext ¶
func (*SQLLite) ListColumns ¶
func (*SQLLite) ListTables ¶
ListTables implements the interface Database
func (*SQLLite) QueryContext ¶
func (*SQLLite) ReturnFullPathRequirement ¶
func (*SQLLite) SeedsCreateTableQuery ¶
func (*SQLLite) SeedsDropTableQuery ¶
Directories
¶
Path | Synopsis |
---|---|
Package databaseImplementationBase provides a base class for the database implementations.
|
Package databaseImplementationBase provides a base class for the database implementations. |
Click to show internal directories.
Click to hide internal directories.