model

package
v0.395.15 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 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 accommodate 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