Documentation ¶
Index ¶
- func GetBytes(key interface{}) []byte
- type Engine
- func (e *Engine) BulkInsert(list interface{}) (int64, error)
- func (e *Engine) Close() error
- func (e *Engine) Count() (int64, error)
- func (e *Engine) Delete(i interface{}) (int64, error)
- func (e *Engine) Get(itemPtr interface{}) error
- func (e *Engine) GetTable() string
- func (e *Engine) Insert(list interface{}) (int64, error)
- func (e *Engine) InsertOne(i interface{}) (int64, error)
- func (e *Engine) List(listPtr interface{}) error
- func (e *Engine) ShowSql(showSql bool)
- func (e *Engine) Table(table string) *Engine
- func (e *Engine) Update(i interface{}) (int64, error)
- func (e *Engine) Where(condition string, arg interface{}) *Engine
- func (e *Engine) WhereIf(condition string, arg interface{}, conditionTrue bool) *Engine
- type Field
- type Schema
- func (s *Schema) GetFieldStringValue(destValue reflect.Value, field Field) interface{}
- func (s *Schema) GetFieldValue(destValue reflect.Value, field Field) interface{}
- func (s *Schema) GetInsertRecordValues(dest interface{}) []interface{}
- func (s *Schema) GetRecordValues(dest interface{}) []interface{}
- func (s *Schema) GetUpdateFieldNames() []string
- func (s *Schema) GetUpdateRecordValues(dest interface{}) []interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) BulkInsert ¶
type Schema ¶
type Schema struct { Name string ModelType reflect.Type Value reflect.Value NumField int FieldNames []string Fields []Field PkField *Field AutoPkField *Field }
func (*Schema) GetFieldStringValue ¶
func (*Schema) GetFieldValue ¶
func (*Schema) GetInsertRecordValues ¶
func (s *Schema) GetInsertRecordValues(dest interface{}) []interface{}
func (*Schema) GetRecordValues ¶
func (s *Schema) GetRecordValues(dest interface{}) []interface{}
func (*Schema) GetUpdateFieldNames ¶
func (*Schema) GetUpdateRecordValues ¶
func (s *Schema) GetUpdateRecordValues(dest interface{}) []interface{}
Click to show internal directories.
Click to hide internal directories.