sqlc

package
v0.431.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddQueriesToSchema added in v0.427.1

func AddQueriesToSchema(ctx context.Context, projectRoot string, mc moduleconfig.AbsModuleConfig, out *schema.Schema) (bool, error)

AddQueriesToSchema adds Decls generated from SQL files to the schema. If the target module already exists in the schema, it is overwritten.

Returns true if the schema was updated, false otherwise.

func Files added in v0.426.0

func Files() *zip.Reader

Files is the SQLC template files.

Types

type ConfigContext

type ConfigContext struct {
	Dir         string
	Module      string
	Engine      string
	SchemaPaths []string
	QueryPaths  []string
	OutDir      string
	Plugin      WASMPlugin
}

type WASMPlugin

type WASMPlugin struct {
	URL    string
	SHA256 string
}

Jump to

Keyboard shortcuts

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