Documentation
¶
Overview ¶
package databam is an ORM designed to make querying highly-relational datasets easy
Index ¶
- Variables
- type Databam
- type DebugLogger
- type DefaultMapper
- func (m DefaultMapper) FieldToColumn(name string) string
- func (m DefaultMapper) FieldsFrom(v reflect.Value, names []string) ([]reflect.Value, error)
- func (m DefaultMapper) RowTo(rows *sql.Rows, columns []string, out reflect.Value) error
- func (m DefaultMapper) RowsTo(rows *sql.Rows, out interface{}) error
- type Mapper
- type Repository
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Databam ¶
type Databam struct {
// contains filtered or unexported fields
}
func (*Databam) MustRepository ¶
func (d *Databam) MustRepository(i interface{}) *Repository
func (*Databam) Repository ¶
func (d *Databam) Repository(i interface{}) (*Repository, error)
func (*Databam) SetDebugLogger ¶
func (d *Databam) SetDebugLogger(debugLogger DebugLogger)
type DebugLogger ¶
type DebugLogger func(string, ...interface{})
type DefaultMapper ¶
type DefaultMapper struct{}
func (DefaultMapper) FieldToColumn ¶
func (m DefaultMapper) FieldToColumn(name string) string
func (DefaultMapper) FieldsFrom ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(d *Databam, i interface{}) (*Repository, error)
func (Repository) Fetch ¶
func (r Repository) Fetch(out interface{}, where interface{}) error
func (Repository) Load ¶
func (r Repository) Load(out interface{}) error
func (*Repository) Select ¶
func (r *Repository) Select() selectQuery
Click to show internal directories.
Click to hide internal directories.