Documentation ¶
Overview ¶
Implementation of RowProvider relying on database/sql.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dialect ¶
type Dialect interface { // TableName writes the name of a table in a sql string to the Builder. WriteTableName(sb *strings.Builder, n r.TableName) // FieldName writes the name of a field in a sql string to the Builder. WriteFieldName(sb *strings.Builder, n r.FieldName) // Placeholder writes a placeholder for the argument i of a sql string to // the Builder. WritePlaceholder(sb *strings.Builder, i int) }
Dialect offers methods to generate database specific sql strings.
type Row ¶
Row implements RowProvider. Each RowAccess is performed on a single sql.DB.
func (*Row) AccessSlice ¶
AccessSlice implements RowProvider.
type SqlError ¶
type SqlError struct {
Err error
}
SqlError is produced when the package database.sql returns an error.
type UnsupportedRowAccessTypeError ¶
UnsupportedRowAccessTypeError is produced when the type of a RowAccess is not supported. Current supported types are RowCreate, RowRetrieve, RowUpdate and RowDelete.
func (UnsupportedRowAccessTypeError) Error ¶
func (e UnsupportedRowAccessTypeError) Error() string
Click to show internal directories.
Click to hide internal directories.