package
Version:
v0.0.0-...-92cf2b6
Opens a new window with list of versions in this module.
Published: Oct 25, 2018
License: BSD-2-Clause
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
DbType is a FieldSelector for selecting a Field with a value supported by
the database driver.
Key is a FieldSelector for selecting a primary key.
NonKey is a FieldSelector for selecting a non-key field.
NonNil is a FieldSelector for selecting a non-nil value.
type Field struct {
Name string
Value interface{}
IsKey bool
}
Field represents a field in a record.
NewField creates a Field given name, value and whether it is a primary key or not.
FieldSelector is a function that returns a boolean value given a Field, for
selecting one or multiple fields.
Fields is the slice of Field.
Filter method filters the Fields according to some FieldSelectors and returns
the result.
func (fs Fields) Values() []interface{}
Values returns a slice of field values.
Record represents a table record including the table name.
func NewRecord(s interface{}) *Record
NewRecord creates a Record from an object.
SetKey sets the primary keys of a record.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.