Documentation ¶
Index ¶
- func CheckAndGetSlice(recordType reflect.Type) (reflect.Value, error)
- func NewData(s *structs.AppCtx) data.IData
- func NewDataV2(s *structs.AppCtx) data.IDataV2
- func NewOql(s *structs.AppCtx, oql string, args ...interface{}) data.IOql
- func NewTransaction(s *structs.AppCtx) data.ITransaction
- func NewTransactionObject(t *Transaction, objectAPIName string) data.ITransactionObject
- type Data
- type DataV2
- type FieldInfo
- type Object
- func (o *Object) BatchCreate(ctx context.Context, records interface{}) ([]int64, error)
- func (o *Object) BatchCreateAsync(ctx context.Context, records interface{}) (int64, error)
- func (o *Object) BatchDelete(ctx context.Context, _ids []int64, result ...interface{}) error
- func (o *Object) BatchDeleteAsync(ctx context.Context, _ids []int64) (int64, error)
- func (o *Object) BatchUpdate(ctx context.Context, records map[int64]interface{}, result ...interface{}) error
- func (o *Object) BatchUpdateAsync(ctx context.Context, records map[int64]interface{}) (int64, error)
- func (o *Object) Count(ctx context.Context) (int64, error)
- func (o *Object) Create(ctx context.Context, record interface{}) (*structs.RecordID, error)
- func (o *Object) Delete(ctx context.Context, _id int64) error
- func (o *Object) Find(ctx context.Context, records interface{}, unauthFields ...interface{}) error
- func (o *Object) FindAll(ctx context.Context, records interface{}) error
- func (o *Object) FindOne(ctx context.Context, record interface{}, unauthFields ...interface{}) error
- func (o *Object) FindStream(ctx context.Context, recordType reflect.Type, ...) error
- func (o *Object) FuzzySearch(keyword string, fieldAPINames []string) data.IQuery
- func (o *Object) Limit(limit int64) data.IQuery
- func (o *Object) Offset(offset int64) data.IQuery
- func (o *Object) OrderBy(fieldAPINames ...string) data.IQuery
- func (o *Object) OrderByDesc(fieldAPINames ...string) data.IQuery
- func (o *Object) Select(fieldAPINames ...string) data.IQuery
- func (o *Object) Update(ctx context.Context, _id int64, record interface{}) error
- func (o *Object) UseSystemAuth() data.IObject
- func (o *Object) UseUserAuth() data.IObject
- func (o *Object) Where(condition interface{}) data.IQuery
- type ObjectInfo
- type Oql
- type Query
- func (q *Query) Count(ctx context.Context) (int64, error)
- func (q *Query) Find(ctx context.Context, records interface{}, unauthFields ...interface{}) (err error)
- func (q *Query) FindAll(ctx context.Context, records interface{}) error
- func (q *Query) FindOne(ctx context.Context, record interface{}, unauthFields ...interface{}) (err error)
- func (q *Query) FindStream(ctx context.Context, recordType reflect.Type, ...) error
- func (q *Query) FuzzySearch(keyword string, fieldAPINames []string) data.IQuery
- func (q *Query) Limit(limit int64) data.IQuery
- func (q *Query) Offset(offset int64) data.IQuery
- func (q *Query) OrderBy(fieldAPINames ...string) data.IQuery
- func (q *Query) OrderByDesc(fieldAPINames ...string) data.IQuery
- func (q *Query) Select(fieldAPINames ...string) data.IQuery
- func (q *Query) UseSystemAuth() data.IQuery
- func (q *Query) UseUserAuth() data.IQuery
- func (q *Query) Where(condition interface{}) data.IQuery
- type Transaction
- type TransactionObject
- func (t *TransactionObject) RegisterBatchCreate(records interface{}) ([]interface{}, error)
- func (t *TransactionObject) RegisterBatchDelete(_ids interface{})
- func (t *TransactionObject) RegisterBatchUpdate(records interface{})
- func (t *TransactionObject) RegisterCreate(record interface{}) (*structs.TransactionRecordID, error)
- func (t *TransactionObject) RegisterDelete(_id interface{})
- func (t *TransactionObject) RegisterUpdate(_id interface{}, record interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAndGetSlice ¶ added in v0.0.14
func NewTransaction ¶
func NewTransaction(s *structs.AppCtx) data.ITransaction
func NewTransactionObject ¶
func NewTransactionObject(t *Transaction, objectAPIName string) data.ITransactionObject
Types ¶
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
func (*Data) NewTransaction ¶
func (d *Data) NewTransaction() data.ITransaction
type DataV2 ¶
type DataV2 struct {
// contains filtered or unexported fields
}
func (*DataV2) NewTransaction ¶
func (d *DataV2) NewTransaction() data.ITransaction
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
func (*Object) BatchCreate ¶
func (*Object) BatchCreateAsync ¶
func (*Object) BatchDelete ¶
func (*Object) BatchDeleteAsync ¶
func (*Object) BatchUpdate ¶
func (*Object) BatchUpdateAsync ¶
func (*Object) FindStream ¶ added in v0.0.14
func (*Object) FuzzySearch ¶ added in v0.0.16
func (*Object) UseSystemAuth ¶ added in v0.0.15
func (*Object) UseUserAuth ¶ added in v0.0.15
type ObjectInfo ¶
type ObjectInfo struct {
Fields []*FieldInfo `json:"fields"`
}
type Oql ¶
type Oql struct {
// contains filtered or unexported fields
}
func (*Oql) UseSystemAuth ¶ added in v0.0.15
func (*Oql) UseUserAuth ¶ added in v0.0.15
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
func (*Query) FindStream ¶ added in v0.0.14
func (*Query) FuzzySearch ¶ added in v0.0.16
func (*Query) UseSystemAuth ¶ added in v0.0.15
func (*Query) UseUserAuth ¶ added in v0.0.15
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
func (*Transaction) Object ¶
func (t *Transaction) Object(objectAPIName string) data.ITransactionObject
func (*Transaction) UseSystemAuth ¶ added in v0.0.15
func (t *Transaction) UseSystemAuth() data.ITransaction
func (*Transaction) UseUserAuth ¶ added in v0.0.15
func (t *Transaction) UseUserAuth() data.ITransaction
type TransactionObject ¶
type TransactionObject struct {
// contains filtered or unexported fields
}
func (*TransactionObject) RegisterBatchCreate ¶
func (t *TransactionObject) RegisterBatchCreate(records interface{}) ([]interface{}, error)
func (*TransactionObject) RegisterBatchDelete ¶
func (t *TransactionObject) RegisterBatchDelete(_ids interface{})
func (*TransactionObject) RegisterBatchUpdate ¶
func (t *TransactionObject) RegisterBatchUpdate(records interface{})
func (*TransactionObject) RegisterCreate ¶
func (t *TransactionObject) RegisterCreate(record interface{}) (*structs.TransactionRecordID, error)
func (*TransactionObject) RegisterDelete ¶
func (t *TransactionObject) RegisterDelete(_id interface{})
func (*TransactionObject) RegisterUpdate ¶
func (t *TransactionObject) RegisterUpdate(_id interface{}, record interface{})
Click to show internal directories.
Click to hide internal directories.