Documentation ¶
Index ¶
- type Marshaler
- type MySQL
- func (db *MySQL) MarshalField(sql string, args ...interface{}) (interface{}, error)
- func (db *MySQL) MarshalFields(sql string, args ...interface{}) (interface{}, error)
- func (db *MySQL) MarshalRow(sql string, args ...interface{}) (interface{}, error)
- func (db *MySQL) MarshalRows(sql string, args ...interface{}) (interface{}, error)
- func (db *MySQL) UnmarshalField(v interface{}, sql string, args ...interface{}) error
- func (db *MySQL) UnmarshalFields(v interface{}, sql string, args ...interface{}) error
- func (db *MySQL) UnmarshalRow(v interface{}, sql string, args ...interface{}) error
- func (db *MySQL) UnmarshalRows(v interface{}, sql string, args ...interface{}) error
- type UnmarshalMarshaler
- type Unmarshaler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Marshaler ¶
type Marshaler interface { MarshalRow(string, ...interface{}) (interface{}, error) MarshalRows(string, ...interface{}) (interface{}, error) MarshalField(string, ...interface{}) (interface{}, error) MarshalFields(string, ...interface{}) (interface{}, error) }
Marshaler interface
* * These operations allow for basic interactions: * -MarshalRow: Update or delete a row * -MarshalRows: Update or delete multiple rows * -MarshalField: Update or delete a single field in a row * -MarshalFields: Update or delete multiple fields in a row * * All methods allow the option to return the overwritten value
type MySQL ¶
MySQL is a wrapper around a sql DB struct
func (*MySQL) MarshalField ¶
MarshalField updates or deletes a rows field in a mysql database
func (*MySQL) MarshalFields ¶
MarshalFields updates or deletes many fields in a mysql database
func (*MySQL) MarshalRow ¶
MarshalRow updates or deletes a row in a mysql database
func (*MySQL) MarshalRows ¶
MarshalRows updates or deletes many rows in a mysql database
func (*MySQL) UnmarshalField ¶
UnmarshalField retrieves a field from a mysql database
func (*MySQL) UnmarshalFields ¶
UnmarshalFields retrieves many fields from a mysql database
func (*MySQL) UnmarshalRow ¶
UnmarshalRow retrieves a row from a mysql database
func (*MySQL) UnmarshalRows ¶
UnmarshalRows retrieves many rows from a mysql database
type UnmarshalMarshaler ¶
type UnmarshalMarshaler interface { Unmarshaler Marshaler }
UnmarshalMarshaler I'm really sorry about this name.
type Unmarshaler ¶
type Unmarshaler interface { UnmarshalRow(interface{}, string, ...interface{}) error UnmarshalRows(interface{}, string, ...interface{}) error UnmarshalField(interface{}, string, ...interface{}) error UnmarshalFields(interface{}, string, ...interface{}) error }
Unmarshaler interface
* * These operations allow for basic interactions: * -UnmarshalRow: Retrieve a row (usually into a struct) * -UnmarshalRows: Retrieve multiple rows (usually into a slice of structs or interfaces) * -UnmarshalField: Retrieve a single field in a row (usually into a single variable) * -UnmarshalFields: Retrieve multiple fields in a row (usually into a slice of interfaces)
Click to show internal directories.
Click to hide internal directories.