notc

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Driver    Driver
	DSN       *string
	SQLDir    *string
	OutputDir string
}

type Driver

type Driver string
const (
	DriverPostgres Driver = "postgres"
)

type Notc

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

func NewNotc

func NewNotc(config *Config) *Notc

func (*Notc) Generate

func (g *Notc) Generate() error

Generate generates a Go SDK for the given database.

func (*Notc) SQLGenerate

func (g *Notc) SQLGenerate() error

SQLGenerate generates a Go SDK for the given SQL directory.

func (*Notc) Setup

func (n *Notc) Setup() error

Directories

Path Synopsis
This version is based on the original https://github.com/ent/ent/blob/master/entc/gen/func.go, which is a modified version of code from ent/ent
This version is based on the original https://github.com/ent/ent/blob/master/entc/gen/func.go, which is a modified version of code from ent/ent
not

Jump to

Keyboard shortcuts

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