sqlstores

package
v0.0.0-...-a45bf93 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateStore

func CreateStore(tx *sqlx.Tx) (ret uint64, err error)

CreateStore allocates a new store ID which wil not be reused

func DropStore

func DropStore(tx *sqlx.Tx, storeID int) error

DropStore deletes a store and any blobs not included in another store.

func Migration

func Migration(x *migrations.State) *migrations.State

func NewStore

func NewStore(db *sqlx.DB, hf cadata.HashFunc, maxSize int, intID uint64) *store

func NewTxStore

func NewTxStore(tx *sqlx.Tx, hf cadata.HashFunc, maxSize int, intID uint64) *txStore

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL