Documentation ¶
Index ¶
- type AbstractSqlStore
- func (store *AbstractSqlStore) BeginTransaction(ctx context.Context) (context.Context, error)
- func (store *AbstractSqlStore) CommitTransaction(ctx context.Context) error
- func (store *AbstractSqlStore) DeleteEntry(ctx context.Context, fullpath util.FullPath) error
- func (store *AbstractSqlStore) DeleteFolderChildren(ctx context.Context, fullpath util.FullPath) error
- func (store *AbstractSqlStore) FindEntry(ctx context.Context, fullpath util.FullPath) (*filer.Entry, error)
- func (store *AbstractSqlStore) InsertEntry(ctx context.Context, entry *filer.Entry) (err error)
- func (store *AbstractSqlStore) KvDelete(ctx context.Context, key []byte) (err error)
- func (store *AbstractSqlStore) KvGet(ctx context.Context, key []byte) (value []byte, err error)
- func (store *AbstractSqlStore) KvPut(ctx context.Context, key []byte, value []byte) (err error)
- func (store *AbstractSqlStore) ListDirectoryEntries(ctx context.Context, fullpath util.FullPath, startFileName string, ...) (entries []*filer.Entry, err error)
- func (store *AbstractSqlStore) ListDirectoryPrefixedEntries(ctx context.Context, fullpath util.FullPath, startFileName string, ...) (entries []*filer.Entry, err error)
- func (store *AbstractSqlStore) RollbackTransaction(ctx context.Context) error
- func (store *AbstractSqlStore) Shutdown()
- func (store *AbstractSqlStore) UpdateEntry(ctx context.Context, entry *filer.Entry) (err error)
- type TxOrDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbstractSqlStore ¶
type AbstractSqlStore struct { DB *sql.DB SqlInsert string SqlUpdate string SqlFind string SqlDelete string SqlDeleteFolderChildren string SqlListExclusive string SqlListInclusive string }
func (*AbstractSqlStore) BeginTransaction ¶
func (*AbstractSqlStore) CommitTransaction ¶
func (store *AbstractSqlStore) CommitTransaction(ctx context.Context) error
func (*AbstractSqlStore) DeleteEntry ¶
func (*AbstractSqlStore) DeleteFolderChildren ¶
func (*AbstractSqlStore) InsertEntry ¶
func (*AbstractSqlStore) KvDelete ¶
func (store *AbstractSqlStore) KvDelete(ctx context.Context, key []byte) (err error)
func (*AbstractSqlStore) ListDirectoryEntries ¶
func (*AbstractSqlStore) ListDirectoryPrefixedEntries ¶
func (*AbstractSqlStore) RollbackTransaction ¶
func (store *AbstractSqlStore) RollbackTransaction(ctx context.Context) error
func (*AbstractSqlStore) Shutdown ¶
func (store *AbstractSqlStore) Shutdown()
func (*AbstractSqlStore) UpdateEntry ¶
Click to show internal directories.
Click to hide internal directories.