database

package
v0.0.0-...-eb599cc Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultSchema

func GetDefaultSchema(serviceName string) (string, error)

GetDefaultSchema returns the schema found at schema/schema.sql in the service's directory.

func GetMockSQL

func GetMockSQL(serviceName string) (string, error)

GetMockSQL returns the schema found at schema/mock_data.sql in the service's directory.

Types

type Database

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

Database performs operations on a database container

func New

func New(c *compose.Compose, config *config.Database) *Database

New returns a Database

func (*Database) ApplySchema

func (d *Database) ApplySchema(serviceName, schema string) error

ApplySchema applies the schema to the database.

Jump to

Keyboard shortcuts

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