ddl

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package ddl holds the reference table schemas for the lookup direct backend, one per dialect. They use the lookup.DefaultSchema table and column names; copy and adapt them when you override names through lookup.Config.Schema.

The Postgres file creates tables only. The stored-procedure schema (lookup/database_schema.sql) is a separate script with native bytea / text[] columns and must not be combined with it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SQL

func SQL(dialect string) (string, error)

SQL returns the schema script for a dialect name ("postgres", "sqlite", "mysql", "mssql").

func Statements

func Statements(dialect string) ([]string, error)

Statements returns the schema as separate statements, for drivers that reject multi-statement execution. Comment-only lines are dropped.

Types

This section is empty.

Jump to

Keyboard shortcuts

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