note

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const EMBED_SEPARATOR = string(filepath.Separator)

Variables

This section is empty.

Functions

func InsertBlock added in v1.1.0

func InsertBlock(db *sql.DB, noteID *uuid.UUID, block *block.Block) error

func InsertCTRBs added in v1.1.0

func InsertCTRBs(db *sql.DB, noteID *uuid.UUID, contributions []*block.Contribution) ([]*uuid.UUID, error)

func Prepare

func Prepare(db *sql.DB, path string) error

func SelectAllAfter

func SelectAllAfter(db *sql.DB, replicaID uint32, noteID *uuid.UUID, blockID *uuid.UUID, blockNonce common.Nonce, textNonce common.Nonce) ([]*block.Contribution, error)

func SelectBlockData added in v1.1.0

func SelectBlockData(db *sql.DB, noteID *uuid.UUID, blockID *uuid.UUID) ([]byte, error)

func SelectBlocks added in v1.1.0

func SelectBlocks(db *sql.DB, noteID *uuid.UUID) ([]*block.Block, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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