Member Junction
Preparing search index...
@memberjunction/schema-engine
SchemaValidator
Class SchemaValidator
Validates a TableDefinition and returns errors/warnings.
Index
Constructors
constructor
Methods
Validate
Constructors
constructor
new
SchemaValidator
()
:
SchemaValidator
Returns
SchemaValidator
Methods
Static
Validate
Validate
(
table
:
TableDefinition
)
:
ValidationResult
Validate a TableDefinition.
Rules:
SchemaName and TableName must be valid SQL identifiers.
SchemaName must not be "__mj" (protected MJ internal schema).
At least one column must be defined.
All column names must be valid SQL identifiers.
SoftPrimaryKey column names must reference columns in the definition.
Parameters
table
:
TableDefinition
Returns
ValidationResult
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
Validate
Member Junction
Loading...
Validates a TableDefinition and returns errors/warnings.