db

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Instance

func Instance() *sql.DB

Instance returns the database instance

func RegisterPreload

func RegisterPreload(query string)

RegisterPreload takes in a query and invokes them just after initializing the database.

This function might be useful for creating tables, etc.

func Setup

func Setup(path string)

Setup sets up the database

Types

This section is empty.

Jump to

Keyboard shortcuts

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