TypeDBLiteSchemaSnapshot
Defined in: libs/runtime/src/interpreter.ts:310
The schema applied to a database, as sorted lists: what schemaSnapshot() returns.
Member summary
Section titled “Member summary”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. |
Properties
Section titled “Properties”annotations
Section titled “annotations”
readonlyannotations: readonlyobject[]
Defined in: libs/runtime/src/interpreter.ts:328
The annotations set on types, ownerships and roles: where, which, and as written.
attributes
Section titled “attributes”
readonlyattributes: readonlystring[]
Defined in: libs/runtime/src/interpreter.ts:316
The attribute types.
readonlyowns: readonlyobject[]
Defined in: libs/runtime/src/interpreter.ts:318
Each attribute a type owns directly, not through a parent.
parents
Section titled “parents”
readonlyparents: readonlyobject[]
Defined in: libs/runtime/src/interpreter.ts:320
Each type with the type it is a subtype of.
readonlyplays: readonlyobject[]
Defined in: libs/runtime/src/interpreter.ts:326
The roles each type plays, written relation:role.
relations
Section titled “relations”
readonlyrelations: readonlystring[]
Defined in: libs/runtime/src/interpreter.ts:314
Which of types are relations.
readonlyroles: readonlyobject[]
Defined in: libs/runtime/src/interpreter.ts:324
The roles of each relation.
readonlytypes: readonlystring[]
Defined in: libs/runtime/src/interpreter.ts:312
The entity and relation types, which are the things that can have instances.
valueTypes
Section titled “valueTypes”
readonlyvalueTypes: readonlyobject[]
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.