db

package
v0.0.0-...-b1f9b26 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package db contains domain types for working with persisted Logseq data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlreadyExists

func AlreadyExists(name, param string) error

func IsAlreadyExists

func IsAlreadyExists(err error) bool

func IsNotExists

func IsNotExists(err error) bool

func NotExists

func NotExists[T ~string](name string, id T) error

Types

type FileID

type FileID string

type FileMeta

type FileMeta struct {
	ID             FileID
	BlobPath       string
	Checksum       []byte
	Size           int64
	LastModifiedAt time.Time
	LastModifiedTX Tx
}

type Graph

type Graph struct {
	ID   GraphID
	Name string
}

type GraphEncryptKey

type GraphEncryptKey struct {
	EncryptedPrivateKey string
	PublicKey           string
}

type GraphID

type GraphID string

type GraphSalt

type GraphSalt struct {
	Value     []byte
	ExpiredAt time.Time
}

type Tx

type Tx int64

Directories

Path Synopsis
Package mem implements an in-memory version of our DB interface, for quick iteration and local testing.
Package mem implements an in-memory version of our DB interface, for quick iteration and local testing.
Package sqlite provides a thin wrapper over the sqlc-generated SQLite wrapper to adhere to our server's DB interface.
Package sqlite provides a thin wrapper over the sqlc-generated SQLite wrapper to adhere to our server's DB interface.

Jump to

Keyboard shortcuts

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