Skip to content

TypeDBLiteSchemaSnapshot

Defined in: libs/runtime/src/interpreter.ts:310

The schema applied to a database, as sorted lists: what schemaSnapshot() returns.

Properties

Name Description
annotations The annotations set on types, ownerships and roles: where, which, and as written.
attributes The attribute types.
owns Each attribute a type owns directly, not through a parent.
parents Each type with the type it is a subtype of.
plays The roles each type plays, written relation:role.
relations Which of types are relations.
roles The roles of each relation.
types The entity and relation types, which are the things that can have instances.
valueTypes The value type of each attribute.

readonly annotations: readonly object[]

Defined in: libs/runtime/src/interpreter.ts:328

The annotations set on types, ownerships and roles: where, which, and as written.


readonly attributes: readonly string[]

Defined in: libs/runtime/src/interpreter.ts:316

The attribute types.


readonly owns: readonly object[]

Defined in: libs/runtime/src/interpreter.ts:318

Each attribute a type owns directly, not through a parent.


readonly parents: readonly object[]

Defined in: libs/runtime/src/interpreter.ts:320

Each type with the type it is a subtype of.


readonly plays: readonly object[]

Defined in: libs/runtime/src/interpreter.ts:326

The roles each type plays, written relation:role.


readonly relations: readonly string[]

Defined in: libs/runtime/src/interpreter.ts:314

Which of types are relations.


readonly roles: readonly object[]

Defined in: libs/runtime/src/interpreter.ts:324

The roles of each relation.


readonly types: readonly string[]

Defined in: libs/runtime/src/interpreter.ts:312

The entity and relation types, which are the things that can have instances.


readonly valueTypes: readonly object[]

Defined in: libs/runtime/src/interpreter.ts:322

The value type of each attribute.

TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.