entris

package module
v0.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	SkipCreate uint = iota
	SkipUpdate
	SkipType
	SkipQuery
	SkipField
	SkipEdge
	SkipAll
)

Variables

This section is empty.

Functions

func NewExtension

func NewExtension(opts ...option) *extension

func Skip

func Skip(skips ...uint) *skipAnnotation

func WithDB

func WithDB(config *DBConfig) option

func WithIris

func WithIris(config *IrisConfig) option

func WithTS

func WithTS(config *TSConfig) option

Types

type DBConfig

type DBConfig struct {
	Path   string
	Driver string
	Dsn    string
}

type Driver

type Driver = string
const (
	SQLite     Driver = "sqlite3"
	MySQL      Driver = "mysql"
	PostgreSQL Driver = "postgres"
)

type IrisConfig

type IrisConfig struct {
	HandlersPath string
	RoutesPath   string
}

type TSConfig

type TSConfig struct {
	TypesPath string
	ApiPath   string
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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