Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrTooManyAffectedRows returned when store modifes too many rows. ErrTooManyAffectedRows = errors.New("too many affected rows") )
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface { StoreFactory StoreTx StoreMigrator }
Store define generic interface for database with transaction support
type StoreFactory ¶
type StoreFactory interface { User() core.UserStore File() core.FileStore Download() core.DownloadStore Chat() core.ChatStore }
StoreFactory define interface of factory methods
type StoreMigrator ¶
type StoreMigrator interface {
Migrator() Migrator
}
StoreMigrator define method for migrations of store
type StoreTx ¶
type StoreTx interface { // TxFactory returns function for create transaction scopes. Tx(ctx context.Context, txFunc TxFunc) error }
StoreTx define interface of transactional of store.
Click to show internal directories.
Click to hide internal directories.