model

package
v0.386.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModelNamesMaxLengthRule

func ModelNamesMaxLengthRule(asts []*parser.AST) (errs errorhandling.ValidationErrors)

ModelNamesMaxLengthRule will validate that model names are smaller than the maximum allowed by postgres (63 bytes).

The maximum field length is given by: 63 - 11 (to accomodate for the longest trigger name suffix: _updated_at) hard limit. This maximum length is applied to the snake cased version of the field name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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