Documentation ¶
Index ¶
- type Iter
- type ReadWrite
- func (its *ReadWrite) Close()
- func (its *ReadWrite) DBName() string
- func (its *ReadWrite) DeleteOne(in interface{})
- func (its *ReadWrite) FindAll(ptr, fun interface{})
- func (its *ReadWrite) FindAllByIndex(ptr, key, fun interface{}) error
- func (its *ReadWrite) FindOne(ptr, key interface{}) error
- func (its *ReadWrite) FindOneByIndex(ptr, lk, pk interface{}) error
- func (its *ReadWrite) FindOrNewOne(out, id interface{}) error
- func (its *ReadWrite) New(in interface{}) error
- func (its *ReadWrite) RemoveOne(in interface{})
- func (its *ReadWrite) Write(in interface{})
- func (its *ReadWrite) WriteAndDelete(in interface{})
- type Record
- func (its *Record) Count() uint
- func (its *Record) GetByIndex(_ interface{}) (interface{}, error)
- func (its *Record) GetByIndexes(_, _ interface{}) (interface{}, error)
- func (its *Record) Index(out, kValue interface{}) error
- func (its *Record) Indexes(out, lkValue, pkValue interface{}) error
- func (its *Record) Iterator(in, fun interface{}) (err error)
- func (its *Record) IteratorByIndex(in, kValue, fun interface{}) (err error)
- func (its *Record) Read(_ interface{}) error
- func (its *Record) Remove(isDelete bool, args ...interface{}) error
- func (its *Record) Write(isNew bool, args ...interface{}) error
- type Source
- func (its *Source) Close()
- func (its *Source) FindAll(dbName string, query bson.M, ptr interface{}) *Iter
- func (its *Source) FindOne(dbName string, query bson.M, out interface{}) error
- func (its *Source) Insert(dbName, colName string, data map[string]interface{}) error
- func (its *Source) InsertOne(dbName string, ptr interface{}) error
- func (its *Source) ReadAll(fun func(interface{}, gdio.IRecord) interface{}) error
- func (its *Source) ReadOne(p interface{}, record gdio.IRecord) error
- func (its *Source) Remove(args ...interface{}) error
- func (its *Source) RemoveAll(dbName, colName string) error
- func (its *Source) RemoveOne(dbName string, ptr interface{})
- func (its *Source) SetIndex(dbName string, ptr interface{}, indexes []*gdio.IndexInfo) error
- func (its *Source) Update(dbName string, ptr interface{}) error
- func (its *Source) Write(args ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReadWrite ¶
ReadWrite ReadWrite
func NewReadWrite ¶
NewReadWrite NewReadWrite
func (*ReadWrite) FindAllByIndex ¶
FindAllByIndex FindAllByIndex
func (*ReadWrite) FindOneByIndex ¶
FindOneByIndex FindOneByIndex
func (*ReadWrite) FindOrNewOne ¶
FindOrNewOne FindOrNewOne
func (*ReadWrite) WriteAndDelete ¶
func (its *ReadWrite) WriteAndDelete(in interface{})
WriteAndDelete WriteAndDelete
type Record ¶
type Record struct {
// contains filtered or unexported fields
}
Record Record
func (*Record) GetByIndex ¶
GetByIndex GetByIndex
func (*Record) GetByIndexes ¶
GetByIndexes GetByIndexes
func (*Record) IteratorByIndex ¶
IteratorByIndex IteratorByIndex
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source Source
Click to show internal directories.
Click to hide internal directories.