edgeql-go

command
v0.0.0-...-d1e8009 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

edgeql-go is a tool to generate go functions from edgeql queries. When run in an EdgeDB project directory (or subdirectory) a *_edgeql.go source file will be generated for each *.edgeql file. The generated go will have an edgeqlFileName and edgeqlFileNameJSON function with typed arguments and return value matching the query's arguments and result shape.

Install

go install github.com/sebastiean/edgedb-go/cmd/edgeql-go@latest

See also pinning tool dependencies.

Usage

Typically this process would be run using go generate like this:

//go:generate edgeql-go

Jump to

Keyboard shortcuts

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