database

package
v0.15.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 19 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	InputDir       string
	OutputDir      string
	Driver         string
	URI            string
	Hosts          []string
	Username       string
	Password       string
	Keyspace       string
	DeploySeedData bool
}

func (*Database) ApplySync

func (d *Database) ApplySync(statements []string) error

func (*Database) CreateFixturesSync

func (d *Database) CreateFixturesSync() error

func (*Database) GetStatementsFromDDL added in v0.15.0

func (d *Database) GetStatementsFromDDL(ddl string) []string

Combine lines that don't terminate with a semicolon. Semicolon on the last line is optional.

func (*Database) PlanSync added in v0.8.0

func (d *Database) PlanSync(specContents []byte, specType string) ([]string, error)

func (*Database) PlanSyncFromFile added in v0.10.0

func (d *Database) PlanSyncFromFile(filename string, specType string) ([]string, error)

func (*Database) PlanSyncSeedData added in v0.13.0

func (d *Database) PlanSyncSeedData(spec *schemasv1alpha4.TableSpec) ([]string, error)

func (*Database) PlanSyncTableSpec added in v0.10.0

func (d *Database) PlanSyncTableSpec(spec *schemasv1alpha4.TableSpec) ([]string, error)

func (*Database) PlanSyncTypeSpec added in v0.12.0

func (d *Database) PlanSyncTypeSpec(spec *schemasv1alpha4.DataTypeSpec) ([]string, error)

func (*Database) PlanSyncViewSpec added in v0.15.0

func (d *Database) PlanSyncViewSpec(spec *schemasv1alpha4.ViewSpec) ([]string, error)

func (*Database) SortSpecs added in v0.15.0

func (d *Database) SortSpecs(specs []types.Spec)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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