schema

package
v0.2.25 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package schema defines the normalized AST for the subset of Rails schema DSL that contributes model types. Non-type-bearing statements such as indexes are intentionally ignored by the parser.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	Name         string
	DatabaseType string
	Nullable     bool
	Span         token.Span
}

type Schema

type Schema struct {
	Tables []Table
}

func Parse

func Parse(source []byte) (*Schema, error)

type Table

type Table struct {
	Name    string
	ID      bool
	Columns []Column
	Span    token.Span
}

Jump to

Keyboard shortcuts

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