cockroachdb

package
v0.0.0-...-47bf3b2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: MIT Imports: 12 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)

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