Documentation ¶
Index ¶
- type Conn
- type Table
- func (t *Table) Columns() []dbEngine.Column
- func (t *Table) Comment() string
- func (t *Table) Delete(ctx context.Context, Options ...dbEngine.BuildSqlOptions) (int64, error)
- func (t *Table) ExecDDL(ctx context.Context, sql string, args ...interface{}) error
- func (t *Table) FindColumn(name string) dbEngine.Column
- func (t *Table) FindIndex(name string) *dbEngine.Index
- func (t *Table) GetColumns(ctx context.Context, dbTypes map[string]dbEngine.Types) error
- func (t *Table) GetSchema(ctx context.Context) (map[string]dbEngine.Table, map[string]dbEngine.Routine, error)
- func (t *Table) GetStat() string
- func (t *Table) Indexes() dbEngine.Indexes
- func (t *Table) InitConn(ctx context.Context, filePath string) error
- func (t *Table) Insert(ctx context.Context, Options ...dbEngine.BuildSqlOptions) (int64, error)
- func (t *Table) Name() string
- func (t *Table) NewTable(name, typ string) dbEngine.Table
- func (t *Table) ReReadColumn(ctx context.Context, name string) dbEngine.Column
- func (t *Table) Select(ctx context.Context, Options ...dbEngine.BuildSqlOptions) error
- func (t *Table) SelectAndRunEach(ctx context.Context, each dbEngine.FncEachRow, ...) error
- func (t *Table) SelectAndScanEach(ctx context.Context, each func() error, rowValue dbEngine.RowScanner, ...) error
- func (t *Table) SelectOneAndScan(ctx context.Context, row interface{}, Options ...dbEngine.BuildSqlOptions) error
- func (t *Table) Update(ctx context.Context, Options ...dbEngine.BuildSqlOptions) (int64, error)
- func (t *Table) Upsert(ctx context.Context, Options ...dbEngine.BuildSqlOptions) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table implement dbEngine interface Table for csv
func (*Table) FindColumn ¶
FindColumn return column 'name' on Table or nil
func (*Table) GetColumns ¶
GetColumns получение значений полей для форматирования данных
func (*Table) GetSchema ¶
func (t *Table) GetSchema(ctx context.Context) (map[string]dbEngine.Table, map[string]dbEngine.Routine, error)
GetSchema read DB schema & store it
func (*Table) ReReadColumn ¶ added in v1.0.1040
ReReadColumn renew properties of column 'name'
func (*Table) SelectAndRunEach ¶
func (t *Table) SelectAndRunEach(ctx context.Context, each dbEngine.FncEachRow, Options ...dbEngine.BuildSqlOptions) error
SelectAndRunEach run sql of table with Options & performs each every row of query results
func (*Table) SelectAndScanEach ¶
func (t *Table) SelectAndScanEach(ctx context.Context, each func() error, rowValue dbEngine.RowScanner, Options ...dbEngine.BuildSqlOptions) error
SelectAndScanEach run sql of table with Options & return every row into rowValues & run each
func (*Table) SelectOneAndScan ¶ added in v1.0.1088
func (t *Table) SelectOneAndScan(ctx context.Context, row interface{}, Options ...dbEngine.BuildSqlOptions) error
SelectOneAndScan run sqlof table with Options & return rows into rowValues
Click to show internal directories.
Click to hide internal directories.