postgres

package
v0.0.0-...-78b482a Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 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 DB

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

func Open

func Open(url, symbol string, ctx context.Context) (db *DB, err error)

func (*DB) Close

func (d *DB) Close() error

func (*DB) GetLastReceipts

func (d *DB) GetLastReceipts(limit int) ([]*db.Reciept, error)

func (*DB) InsertReceipt

func (d *DB) InsertReceipt(receipt *db.Reciept) (err error)

Jump to

Keyboard shortcuts

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