sqlite

package
v0.0.0-...-a69bb48 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLiteDriver

type SQLiteDriver struct {
	// contains filtered or unexported fields
}

func NewSQLiteDriver

func NewSQLiteDriver(tablePrefix, path string) (*SQLiteDriver, error)

func (*SQLiteDriver) ChunkAttachmentList

func (s *SQLiteDriver) ChunkAttachmentList(ctx context.Context, uuid chunkyUploads.UUID) ([]*chunkyUploads.ChunkAttachment, error)

func (*SQLiteDriver) ChunkCreate

func (s *SQLiteDriver) ChunkCreate(ctx context.Context, f *chunkyUploads.File, c *chunkyUploads.Chunk) error

func (*SQLiteDriver) ChunkDelete

func (s *SQLiteDriver) ChunkDelete(ctx context.Context, uuid chunkyUploads.UUID) error

func (*SQLiteDriver) ChunkRetrieve

func (s *SQLiteDriver) ChunkRetrieve(ctx context.Context, uuid chunkyUploads.UUID) (*chunkyUploads.Chunk, error)

func (*SQLiteDriver) ChunkStorageUsage

func (s *SQLiteDriver) ChunkStorageUsage(ctx context.Context) (n uint64, err error)

func (*SQLiteDriver) Close

func (s *SQLiteDriver) Close() error

func (*SQLiteDriver) FileCreate

func (s *SQLiteDriver) FileCreate(ctx context.Context, f *chunkyUploads.File) error

func (*SQLiteDriver) FileDelete

func (s *SQLiteDriver) FileDelete(ctx context.Context, uuid chunkyUploads.UUID) error

func (*SQLiteDriver) FileQuery

func (*SQLiteDriver) FileRetrieve

func (s *SQLiteDriver) FileRetrieve(ctx context.Context, uuid chunkyUploads.UUID) (*chunkyUploads.File, error)

func (*SQLiteDriver) FileUpdate

func (s *SQLiteDriver) FileUpdate(ctx context.Context, uuid chunkyUploads.UUID, update func(f *chunkyUploads.File) error) error

Jump to

Keyboard shortcuts

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