Skip to content
🚀 This documentation is for unreal-orm 1.0.0 alpha which requires SurrealDB 2.0 alpha SDK. For the stable version, see npm.

generateFullSchemaQl

generateFullSchemaQl(definables, method): string

Defined in: schema/generator.ts:46

Generates the full SurrealQL schema for all provided definable entities (tables and indexes).

Definable[]

An array of Definable entities (model classes and index definitions).

The method to use for schema application if a table already exists.

"IF NOT EXISTS" | "OVERWRITE" | "error"

string

A string containing the complete SurrealQL schema.