dompgx

package
v0.0.0-...-ebfb46d Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: BSD-2-Clause Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFrom

func CopyFrom(ctx context.Context, db *pgxpool.Pool, reg *lit.Regs, s *dom.Schema, fix lit.Keyed) error

func CreateModel

func CreateModel(ctx context.Context, tx dapgx.C, p *dom.Project, s *dom.Schema, m *dom.Model) error

func CreateProject

func CreateProject(ctx context.Context, db *pgxpool.Pool, p *dom.Project) error

func DropProject

func DropProject(ctx context.Context, db *pgxpool.Pool, p *dom.Project) error

func WriteEnum

func WriteEnum(w *dapgx.Writer, m *dom.Model) error

func WriteModel

func WriteModel(w *dapgx.Writer, m *dom.Model) error

func WriteSchema

func WriteSchema(w *dapgx.Writer, s *dom.Schema) (err error)

func WriteSchemaFile

func WriteSchemaFile(fname string, p *dom.Project, s *dom.Schema) error

func WriteTable

func WriteTable(w *dapgx.Writer, m *dom.Model) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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