grower

package
v0.0.0-...-526fb46 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	// contains filtered or unexported fields
}

Conn holds the database connection.

func New

func New(dataSourceName string) (*Conn, error)

New a connection to the database.

func (*Conn) Close

func (c *Conn) Close() error

Close closes database connection.

func (*Conn) CreateTable

func (c *Conn) CreateTable() error

CreateTable creates balances and balances_parities tables.

func (*Conn) Increment

func (c *Conn) Increment() error

Increment gradually increases the balance, each time for 1.

func (*Conn) Init

func (c *Conn) Init() error

Init inits balances and balances_parities tables.

Jump to

Keyboard shortcuts

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