Documentation ¶
Index ¶
- type SqliteDB
- func (s *SqliteDB) BeginTransaction() (model.IDatabase, error)
- func (s *SqliteDB) ClearRecodes(bSynced bool) error
- func (s *SqliteDB) Close() error
- func (s *SqliteDB) Commit() error
- func (s *SqliteDB) CreateRecode(r *model.Recode) (int64, error)
- func (s *SqliteDB) DeleteDomain(domainID int64) error
- func (s *SqliteDB) DeleteRecode(id int64) error
- func (s *SqliteDB) FindByKey(key string) (*model.Recode, error)
- func (s *SqliteDB) FindByName(domainID int64, name string) (*m.Recode, error)
- func (s *SqliteDB) FindDomainByName(domain string) (*m.Domain, error)
- func (s *SqliteDB) GetAllDomains(offset, limit int) ([]*m.Domain, error)
- func (s *SqliteDB) GetDomain(domainID int64) (*m.Domain, error)
- func (s *SqliteDB) GetDomains(userID int64) ([]*m.Domain, error)
- func (s *SqliteDB) GetRecode(id int64) (*m.Recode, error)
- func (s *SqliteDB) GetRecodes(domainID int64, offset, limit int) ([]*m.Recode, error)
- func (s *SqliteDB) GetVersion() int64
- func (s *SqliteDB) Init() error
- func (s *SqliteDB) NewDomain(userID int64, d *m.Domain) (int64, error)
- func (s *SqliteDB) NewRecode(domainID int64, r *m.Recode) (int64, error)
- func (s *SqliteDB) ReadData(offset, limit int) ([]*model.Recode, error)
- func (s *SqliteDB) RegListener(l model.OnDomainChanged)
- func (s *SqliteDB) Rollback() error
- func (s *SqliteDB) SetVersion(v int64)
- func (s *SqliteDB) UnRegListener(l model.OnDomainChanged)
- func (s *SqliteDB) UpdateDomain(domainID int64, newName string) error
- func (s *SqliteDB) UpdateRecode(id int64, r *m.Recode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SqliteDB ¶
type SqliteDB struct {
// contains filtered or unexported fields
}
func (*SqliteDB) ClearRecodes ¶
func (*SqliteDB) DeleteDomain ¶
func (*SqliteDB) DeleteRecode ¶
func (*SqliteDB) FindByName ¶
func (*SqliteDB) FindDomainByName ¶
func (*SqliteDB) GetAllDomains ¶
func (*SqliteDB) GetRecodes ¶
func (*SqliteDB) GetVersion ¶
func (*SqliteDB) RegListener ¶
func (s *SqliteDB) RegListener(l model.OnDomainChanged)
RegListener ...
func (*SqliteDB) SetVersion ¶
func (*SqliteDB) UnRegListener ¶
func (s *SqliteDB) UnRegListener(l model.OnDomainChanged)
UnRegListener ...
func (*SqliteDB) UpdateDomain ¶
Click to show internal directories.
Click to hide internal directories.