Documentation ¶
Index ¶
- func New(Driver, Source string)
- type Read
- func (r *Read) Item(query string, args ...interface{}) (*sqlx.Row, error)
- func (r *Read) ItemNamed(query string, args interface{}) (*sqlx.Row, error)
- func (r *Read) ItemStruct(dest interface{}, query string, args ...interface{}) error
- func (r *Read) ItemStructNamed(dest interface{}, query string, args interface{}) error
- func (r *Read) List(query string, args ...interface{}) (*sqlx.Rows, error)
- func (r *Read) ListNamed(query string, args interface{}) (*sqlx.Rows, error)
- func (r *Read) ListStruct(dest interface{}, query string, args ...interface{}) error
- func (r *Read) ListStructNamed(dest interface{}, query string, args interface{}) error
- type Write
- func (w *Write) Item(query string, args ...interface{}) (sql.Result, error)
- func (w *Write) ItemNamed(query string, args interface{}) (sql.Result, error)
- func (w *Write) List(query string, args ...[]interface{}) (sql.Result, error)
- func (w *Write) ListNamed(query string, args ...interface{}) (sql.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Read ¶
type Read struct{}
Read Read
func (*Read) ItemStruct ¶
ItemStruct read item struct
func (*Read) ItemStructNamed ¶
ItemStructNamed item struct named
func (*Read) ListStruct ¶
ListStruct read list struct
func (*Read) ListStructNamed ¶
ListStructNamed list struct named
Click to show internal directories.
Click to hide internal directories.