postgres

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TypeMapKassetteToDest = map[string]string{
		"INT":       "int",
		"FLOAT":     "float64",
		"BOOLEAN":   "bool",
		"SERIAL":    "int",
		"BIGSERIAL": "int64",
		"VARCHAR":   "string",
		"TEXT":      "string",
		"JSONB":     "string",
		"TIMESTAMP": "datetime",
	}
)

Functions

This section is empty.

Types

type HandleT

type HandleT struct {
	DBHandle *sql.DB              `json:"DBHandle"`
	Schema   integrations.SchemaT `json:"Schema"`
}

func (*HandleT) Connect

func (handle *HandleT) Connect(config string) bool

func (*HandleT) InsertPayloadInTransaction

func (handle *HandleT) InsertPayloadInTransaction(rawPayloads []json.RawMessage) error

type TransformerHandleT

type TransformerHandleT struct{}

func (*TransformerHandleT) Convert

func (handleT *TransformerHandleT) Convert(v interface{}, converToType string) (interface{}, bool)

Jump to

Keyboard shortcuts

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