Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RewriteLimit ¶
RewriteLimit rewrites a DuckDB SQL statement to limit the result size
func RewriteTableRefs ¶
RewriteTableRefs replaces table references in a DuckDB SQL query
Types ¶
type Annotation ¶
Annotation is key-value annotation extracted from a DuckDB SQL comment
func ExtractAnnotations ¶
func ExtractAnnotations() ([]*Annotation, error)
ExtractAnnotations extracts annotations from comments prefixed with '@', and optionally a value after a ':'. Examples: "-- @materialize" and "-- @materialize: true".
type ColumnRef ¶
ColumnRef has information about a column in the select list of a DuckDB SQL statement
func ExtractColumnRefs ¶
ExtractColumnRefs extracts column references from the outermost SELECT of a DuckDB SQL statement
type TableRef ¶
TableRef has information extracted about a DuckDB table or table function reference
func ExtractTableRefs ¶
ExtractTableRefs extracts table references from a DuckDB SQL query