stdsql

package
v0.0.0-...-4386ded Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAndJournalCollection

func CreateAndJournalCollection(collection *relation.Relation, crud flux.CRUD, sqlrunner *SQLRunner) error

func NewNodeCompiler

func NewNodeCompiler() *nodeCompiler

func NewRowDeleter

func NewRowDeleter(sqlRunner *SQLRunner) *rowDeleter

func NewRowUpdater

func NewRowUpdater(sqlRunner *SQLRunner) *rowUpdater

func NewSchemaJournalist

func NewSchemaJournalist(crud flux.CRUD) flux.SchemaJournalist

func NewSchemaManager

func NewSchemaManager(sqlRunner *SQLRunner, journalist flux.SchemaJournalist) flux.SchemaManager

Types

type RowInserter

type RowInserter struct {
	// contains filtered or unexported fields
}

func NewRowInserter

func NewRowInserter(sqlRunner *SQLRunner) *RowInserter

func (*RowInserter) Insert

func (inserter *RowInserter) Insert(table string, values *flux.RecordMap) (string, error)

type RowQuerier

type RowQuerier struct {
	// contains filtered or unexported fields
}

func NewQuerier

func NewQuerier(sqlRunner *SQLRunner, selectCompiler SelectCompiler) *RowQuerier

func (*RowQuerier) Next

func (query *RowQuerier) Next() (*flux.RecordMap, error)

returns nil if there is no records left

func (*RowQuerier) Query

func (query *RowQuerier) Query() error

type SQLRunner

type SQLRunner struct {
	// contains filtered or unexported fields
}

func NewSQLRunner

func NewSQLRunner(driverName string, dataSourceName string) *SQLRunner

func (*SQLRunner) Query

func (runner *SQLRunner) Query(sql string) (*sql.Rows, error)

func (*SQLRunner) Run

func (runner *SQLRunner) Run(sql string) error

type SelectCompiler

type SelectCompiler interface {
	Compile() (string, error)
}

type TableCreator

type TableCreator struct {
	// contains filtered or unexported fields
}

func (*TableCreator) Create

func (creator *TableCreator) Create(table string) error

type TableDeleter

type TableDeleter struct {
	// contains filtered or unexported fields
}

func (*TableDeleter) Delete

func (deleter *TableDeleter) Delete(table string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL