postgres

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresDriver

type PostgresDriver struct {
	Host         string
	Port         int
	Username     string
	Password     string
	DatabaseName string
}

PostgresDriver is a driver for Postgres databases.

func (*PostgresDriver) GetColumns

func (d *PostgresDriver) GetColumns(schemaName, tableName string) ([]*schema.Column, error)

GetColumns returns the columns for a MySQL table.

func (*PostgresDriver) GetSchemas

func (d *PostgresDriver) GetSchemas() ([]*schema.Schema, error)

GetSchemas returns the schemas for a Postgres database.

func (*PostgresDriver) GetTables

func (d *PostgresDriver) GetTables(schemaName string) ([]*schema.Table, error)

GetTables returns the tables for a MySQL schema.

func (*PostgresDriver) TestConnection

func (d *PostgresDriver) TestConnection() error

TestConnection tests the connection to a Postgres database.

Jump to

Keyboard shortcuts

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