postgres

package
v0.0.0-...-adef002 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load()

Load config and connect do db

func LoadTableCSV

func LoadTableCSV(tableName string) (ret []byte, err error)

LoadTableCSV load a table and trasform to CSV in a byte array

func LoadTableJSON

func LoadTableJSON(tableName string) (ret []byte, err error)

LoadTableJSON load a table and trasform to JSON

Types

type Table

type Table struct {
	Name string
}

Table metadata

func ListTables

func ListTables() (t []Table, err error)

ListTables get all tables from a schema and return in a slice

Jump to

Keyboard shortcuts

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