qmfsdb

package
v0.0.0-...-ff95916 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

func Open

func Open(ctx context.Context, localDBFilename string, opts *Options) (*Database, error)

func (*Database) Close

func (d *Database) Close() error

func (*Database) DeleteFile

func (d *Database) DeleteFile(ctx context.Context, req *pb.DeleteFileRequest) (*pb.DeleteFileResponse, error)

func (*Database) GetDatabaseMetadata

func (*Database) GetEntity

func (d *Database) GetEntity(ctx context.Context, req *pb.GetEntityRequest) (*pb.GetEntityResponse, error)

func (*Database) ListEntityFiles

func (d *Database) ListEntityFiles(ctx context.Context) ([]EntityFile, error)

func (*Database) ListNamespaces

func (*Database) QueryEntities

func (*Database) ReadFile

func (d *Database) ReadFile(ctx context.Context, req *pb.ReadFileRequest) (*pb.ReadFileResponse, error)

func (*Database) WriteFile

func (d *Database) WriteFile(ctx context.Context, req *pb.WriteFileRequest) (*pb.WriteFileResponse, error)

type EntityFile

type EntityFile struct {
	EntityID string `sql:"entity_id"`
	Filename string `sql:"filename"`
}

type MaybeString

type MaybeString struct {
	Value string
	Err   error
}

type Options

type Options struct {
	ChangeHook func()
}

Jump to

Keyboard shortcuts

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