shared

package
v5.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResetTestDB

func ResetTestDB(db *sqlx.DB) error

ResetTestDB drops all rows in the test db ipld.blocks table

func TestDB

func TestDB() (*sqlx.DB, error)
Hostname:     "localhost",
Port:         8077,
DatabaseName: "cerc_testing",
Username:     "vdbm",
Password:     "password",

TestDB connect to the testing database it assumes the database has the IPFS ipld.blocks table present DO NOT use a production db for the test db, as it will remove all contents of the ipld.blocks table

Types

This section is empty.

Jump to

Keyboard shortcuts

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