Documentation
¶
Overview ¶
internal/core/validation.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllowedColumnTypes = map[string]string{
"TEXT": "TEXT",
"INTEGER": "INTEGER",
"REAL": "REAL",
"BLOB": "BLOB",
"BOOLEAN": "BOOLEAN",
}
Allowed SQLite column types for user definition (uppercase keys and values)
Functions ¶
func IsValidIdentifier ¶
IsValidIdentifier checks if a string is a valid identifier (e.g., db_name, table_name, column_name) Applies basic format and length checks.
func NormalizeAndValidateType ¶
NormalizeAndValidateType checks if a string is an allowed column type, returning the normalized uppercase version.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.