table

package
v0.0.0-...-f1ac7cd Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

func Fetch(db *sql.DB, id string, format string) (string, error)

Fetch attempts to fetch the CID of the file given by id and string

func InitializeTable

func InitializeTable(db *sql.DB) error

InitializeTable creates an initialized table at path given

func OpenDB

func OpenDB(filepath string) (*sql.DB, error)

OpenDB the sqlite database given by the filepath

func Store

func Store(db *sql.DB, id string, format string, location string) error

Store attempts to insert an ipfs address pointing to a file with keys being id and format given

Types

This section is empty.

Jump to

Keyboard shortcuts

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