duckdb

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dialect

func Dialect() core.Option

Dialect returns the catalog option that seeds DuckDB's type system.

func NewIdentifier

func NewIdentifier(t string) *ast.String

Types

type Parser

type Parser struct{}

func NewParser

func NewParser() *Parser

func (*Parser) IsReservedKeyword

func (p *Parser) IsReservedKeyword(s string) bool

IsReservedKeyword reports whether s is a reserved keyword in DuckDB's grammar, per the keyword lists darkwing vendors from DuckDB.

func (*Parser) Parse

func (p *Parser) Parse(r io.Reader) ([]ast.Statement, error)

Parse converts DuckDB SQL into sqlc's AST. darkwing assigns every statement a byte span and the spans tile the input — each statement starts where the previous one ended — so a statement's span covers the comments before it, which is where the sqlc query annotation lives.

Jump to

Keyboard shortcuts

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