schema

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package schema declares columns for the --dsn mode's test, some right and some wrong against the table the test creates.

Index

Constants

This section is empty.

Variables

View Source
var (
	Accounts = expr.Table{Name: "accounts", Alias: "a"}
	ID       = expr.Col[int64](Accounts, "id")       // right
	Email    = expr.Col[string](Accounts, "email")   // right
	Age      = expr.Col[string](Accounts, "age")     // wrong type: integer column
	Nick     = expr.Col[string](Accounts, "nick")    // wrong nullability: nullable column
	Gone     = expr.Col[bool](Accounts, "deleted")   // column does not exist
	Created  = expr.Col[time.Time](Accounts, "made") // right

	Ghost   = expr.Table{Name: "ghosts", Alias: "g"}
	GhostID = expr.Col[int64](Ghost, "id") // table does not exist
)

Accounts is the table the test creates; the columns below are declared against it, some right and some wrong.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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