postgres

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2025 License: Apache-2.0, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDatabase

func NewDatabase(config database.Config) (database.Database, error)

Types

type PostgresDatabase

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

func (*PostgresDatabase) Close

func (d *PostgresDatabase) Close() error

func (*PostgresDatabase) DB

func (d *PostgresDatabase) DB() *sql.DB

func (*PostgresDatabase) DumpDDLs

func (d *PostgresDatabase) DumpDDLs() (string, error)

func (*PostgresDatabase) GetDefaultSchema

func (d *PostgresDatabase) GetDefaultSchema() string

type PostgresParser

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

func NewParser

func NewParser() PostgresParser

func (PostgresParser) Parse

func (p PostgresParser) Parse(sql string) ([]database.DDLStatement, error)

Jump to

Keyboard shortcuts

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