C# gRPC driver
Connection
TypeDB
class
Package: TypeDB.Driver
Entry point for creating TypeDB driver connections.
method Driver
static IDriver Driver(string address, Credentials credentials, DriverOptions driverOptions)
Open a TypeDB Driver to a TypeDB server available at the provided address.
| Name | Description | Type |
|---|---|---|
|
The address (host:port) on which the TypeDB Server is running. |
|
|
The Credentials to connect with. |
|
|
The DriverOptions to connect with. |
|
IDriver
using var driver = TypeDB.Driver( "localhost:1729", new Credentials("admin", "password"), new DriverOptions(false, null)); TypeDB.Driver.Api.Credentials User credentials for connecting to TypeDB Server. Definition Credentials.cs:33 TypeDB.Driver.Api.DriverOptions User connection settings (TLS encryption, etc.) for connecting to TypeDB Server. Definition DriverOptions.cs:37 TypeDB.Driver Definition TypeDB.cs:24 TypeDB Definition TypeDB.cs:24
IDriver
class
Package: TypeDB.Driver.Api
A connection to a TypeDB server which serves as the starting point for all interaction.
method Close
void Close()
Closes the driver. Before instantiating a new driver, the driver that’s currently open should first be closed.
void
driver.Close();
method Databases
IDatabaseManager TypeDB.Driver.Api.IDriver.Databases
The IDatabaseManager for this connection, providing access to database management methods.
IDatabaseManager
driver.Databases
method IsOpen
bool IsOpen()
Checks whether this connection is presently open.
bool
driver.IsOpen();
method Transaction
ITransaction Transaction(string database, TransactionType type)
Opens a transaction to perform read or write queries on the database.
| Name | Description | Type |
|---|---|---|
|
The name of the database to open a transaction for. |
|
|
The type of transaction to be created (Read, Write, or Schema). |
|
ITransaction
driver.Transaction(database, TransactionType.Read); TypeDB.Driver.Api.TransactionType TransactionType Used to specify the type of transaction. Definition ITransaction.cs:99
method Transaction
ITransaction Transaction(string database, TransactionType type, TransactionOptions options)
Opens a transaction to perform read or write queries on the database with custom options.
| Name | Description | Type |
|---|---|---|
|
The name of the database to open a transaction for. |
|
|
The type of transaction to be created (Read, Write, or Schema). |
|
|
Transaction options to configure the opened transaction. |
|
ITransaction
driver.Transaction(database, TransactionType.Read, options);
Credentials
class
Package: TypeDB.Driver.Api
User credentials for connecting to TypeDB Server.
Credentials credentials = new Credentials("admin", "password");
TypeDB.Driver.Api.Credentials
User credentials for connecting to TypeDB Server.
Definition Credentials.cs:33
DriverOptions
class
Package: TypeDB.Driver.Api
User connection settings (TLS encryption, etc.) for connecting to TypeDB Server.
// No TLS
DriverOptions options = new DriverOptions(false, null);
// TLS with custom CA certificate
DriverOptions options = new DriverOptions(true, "/path/to/ca-certificate.pem");
TypeDB.Driver.Api.DriverOptions
User connection settings (TLS encryption, etc.) for connecting to TypeDB Server.
Definition DriverOptions.cs:37
method DriverOptions
DriverOptions(bool isTlsEnabled, string? tlsRootCAPath = null)
Creates a new DriverOptions for connecting to TypeDB Server.
| Name | Description | Type |
|---|---|---|
|
Specify whether the connection to TypeDB Server must be done over TLS. |
|
|
Path to the CA certificate to use for authenticating server certificates. Can be null if using system CA or TLS is disabled. |
DriverOptions
IDatabaseManager
class
Package: TypeDB.Driver.Api
Provides access to all database management methods.
method Contains
bool Contains(string name)
Checks if a database with the given name exists.
| Name | Description | Type |
|---|---|---|
|
The database name to be checked |
|
bool
driver.Databases.Contains(name);
method Create
void Create(string name)
Create a database with the given name.
| Name | Description | Type |
|---|---|---|
|
The name of the database to be created |
|
void
driver.Databases.Create(name);
method Get
IDatabase Get(string name)
Retrieve the database with the given name.
| Name | Description | Type |
|---|---|---|
|
The name of the database to retrieve |
|
IDatabase
driver.Databases.Get(name);
method GetAll
IList< IDatabase > GetAll()
Retrieves all databases present on the TypeDB server.
IList< IDatabase >
driver.Databases.GetAll();
method ImportFromFile
void ImportFromFile(string name, string schema, string dataFile)
Creates a database with the given name based on previously exported data. This is a blocking operation and may take a significant amount of time depending on the database size.
| Name | Description | Type |
|---|---|---|
|
The name of the database to be created. |
|
|
The schema definition query string for the database. |
|
|
The exported database file path to import the data from. |
|
void
driver.Databases.ImportFromFile("mydb", schemaString, "/path/to/data.typedb");
IDatabase
class
Package: TypeDB.Driver.Api
A TypeDB database.
method ExportToFile
void ExportToFile(string schemaFile, string dataFile)
Exports this database to a schema definition file and a data file on disk. This is a blocking operation and may take a significant amount of time depending on the database size.
| Name | Description | Type |
|---|---|---|
|
The path to the schema definition file to be created. |
|
|
The path to the data file to be created. |
|
void
database.ExportToFile("schema.tql", "data.typedb");
method GetSchema
string GetSchema()
Returns the full schema text as a valid TypeQL define query string.
string
database.GetSchema();
IUserManager
class
Package: TypeDB.Driver.Api
Provides access to all user management methods.
method Contains
bool Contains(string username)
Checks if a user with the given name exists.
| Name | Description | Type |
|---|---|---|
|
The user name to be checked. |
|
bool
driver.Users.Contains(username);
method Create
void Create(string username, string password)
Creates a user with the given name and password.
| Name | Description | Type |
|---|---|---|
|
The name of the user to be created. |
|
|
The password of the user to be created. |
|
void
driver.Users.Create(username, password);
method Get
IUser? Get(string username)
Retrieves a user with the given name.
| Name | Description | Type |
|---|---|---|
|
The name of the user to retrieve. |
|
IUser?
driver.Users.Get(username);
Transaction
ITransaction
class
Package: TypeDB.Driver.Api
A transaction with a TypeDB database.
method Analyze
Promise< IAnalyzedQuery > Analyze(string query)
Analyzes a TypeQL query and returns information about its structure and type inference results.
| Name | Description | Type |
|---|---|---|
|
The TypeQL query string to analyze. |
|
Promise< IAnalyzedQuery >
method Commit
void Commit()
Commits the changes made via this transaction to the TypeDB database. Whether or not the transaction is committed successfully, it gets closed after the commit call.
void
method OnClose
void OnClose(Action< Exception? > function)
Registers a callback function which will be executed when this transaction is closed.
| Name | Description | Type |
|---|---|---|
|
The callback function. |
|
void
method Query
Promise< IQueryAnswer > Query(string query)
Executes a TypeQL query in this transaction.
| Name | Description | Type |
|---|---|---|
|
The TypeQL query string to execute. |
|
Promise< IQueryAnswer >
method Query
Promise< IQueryAnswer > Query(string query, QueryOptions options)
Executes a TypeQL query in this transaction with custom options.
| Name | Description | Type |
|---|---|---|
|
The TypeQL query string to execute. |
|
|
Query options. |
|
Promise< IQueryAnswer >
TransactionType
class
Package: TypeDB.Driver.Api
Used to specify the type of transaction.
driver.Transaction(database, TransactionType.Read);
TypeDB.Driver.Api.TransactionType
TransactionType
Used to specify the type of transaction.
Definition ITransaction.cs:99
TransactionOptions
class
Package: TypeDB.Driver.Api
Options for transactions.
method SchemaLockAcquireTimeoutMillis
long? TypeDB.Driver.Api.TransactionOptions.SchemaLockAcquireTimeoutMillis
Gets or sets the schema lock acquire timeout in milliseconds.
long?
QueryOptions
class
Package: TypeDB.Driver.Api
Options for query execution.
method IncludeInstanceTypes
bool? TypeDB.Driver.Api.QueryOptions.IncludeInstanceTypes
Gets or sets whether to include instance types in query results.
bool?
method IncludeQueryStructure
bool? TypeDB.Driver.Api.QueryOptions.IncludeQueryStructure
Gets or sets whether to include query structure in query results.
bool?
Answer
IQueryAnswer
class
Package: TypeDB.Driver.Api.Answer
General answer on a query returned by a server. Can be a simple Ok response or a collection of concepts.
method AsConceptDocuments
IConceptDocumentIterator AsConceptDocuments()
Casts the query answer to IConceptDocumentIterator.
Implemented in TypeDB.Driver.Api.Answer.IConceptDocumentIterator.
IConceptDocumentIterator
queryAnswer.AsConceptDocuments()
method AsConceptRows
IConceptRowIterator AsConceptRows()
Casts the query answer to IConceptRowIterator.
Implemented in TypeDB.Driver.Api.Answer.IConceptRowIterator.
IConceptRowIterator
queryAnswer.AsConceptRows()
method AsOk
IOkQueryAnswer AsOk()
Casts the query answer to IOkQueryAnswer.
Implemented in TypeDB.Driver.Api.Answer.IOkQueryAnswer.
IOkQueryAnswer
queryAnswer.AsOk()
method IsConceptDocuments
bool TypeDB.Driver.Api.Answer.IQueryAnswer.IsConceptDocuments
Checks if the query answer is a IConceptDocumentIterator.
Implemented in TypeDB.Driver.Api.Answer.IConceptDocumentIterator.
bool
queryAnswer.IsConceptDocuments
method IsConceptRows
bool TypeDB.Driver.Api.Answer.IQueryAnswer.IsConceptRows
Checks if the query answer is a IConceptRowIterator.
Implemented in TypeDB.Driver.Api.Answer.IConceptRowIterator.
bool
queryAnswer.IsConceptRows
IOkQueryAnswer
class
Package: TypeDB.Driver.Api.Answer
Supertypes:
-
TypeDB.Driver.Api.Answer.IQueryAnswer
Represents a simple Ok message as a server answer. Doesn’t contain concepts.
IConceptRowIterator
class
Package: TypeDB.Driver.Api.Answer
Supertypes:
-
TypeDB.Driver.Api.Answer.IQueryAnswer
Represents an iterator over IConceptRows returned as a server answer.
IConceptRow
class
Package: TypeDB.Driver.Api.Answer
Contains a row of concepts with a header.
method ColumnNames
IEnumerable< string > TypeDB.Driver.Api.Answer.IConceptRow.ColumnNames
Produces a collection of all column names (variables) in the header of this IConceptRow. Shared between all the rows in a QueryAnswer.
IEnumerable< string >
conceptRow.ColumnNames
method Concepts
IEnumerable< IConcept > TypeDB.Driver.Api.Answer.IConceptRow.Concepts
Produces a collection over all concepts in this IConceptRow, skipping empty results.
IEnumerable< IConcept >
conceptRow.Concepts
method Get
IConcept? Get(string columnName)
Retrieves a concept for a given column name (variable). Returns null if the variable has an empty answer. Throws an exception if the variable is not present.
| Name | Description | Type |
|---|---|---|
|
The variable (column name from ColumnNames) |
|
IConcept?
conceptRow.Get(columnName)
method GetIndex
IConcept? GetIndex(long columnIndex)
Retrieves a concept for a given index of the header (ColumnNames). Returns null if the index points to an empty answer. Throws an exception if the index is not in the row’s range.
| Name | Description | Type |
|---|---|---|
|
The column index |
|
IConcept?
conceptRow.GetIndex(columnIndex)
IConceptDocumentIterator
class
Package: TypeDB.Driver.Api.Answer
Supertypes:
-
TypeDB.Driver.Api.Answer.IQueryAnswer
Represents an iterator over concept documents (represented as IJSONs) returned as a server answer.
IJSON
class
Package: TypeDB.Driver.Api.Answer
Represents a JSON value returned from a fetch query.
method AsArray
IReadOnlyList< IJSON > AsArray()
Casts this JSON value to an array.
IReadOnlyList< IJSON >
json.AsArray()
method AsBoolean
bool AsBoolean()
Casts this JSON value to a boolean.
bool
json.AsBoolean()
method AsNumber
double AsNumber()
Casts this JSON value to a number.
double
json.AsNumber()
method AsObject
IReadOnlyDictionary< string, IJSON > AsObject()
Casts this JSON value to an object (dictionary).
IReadOnlyDictionary< string, IJSON >
json.AsObject()
method AsString
string AsString()
Casts this JSON value to a string.
string
json.AsString()
method IsArray
bool TypeDB.Driver.Api.Answer.IJSON.IsArray
Checks if this JSON value is an array.
bool
json.IsArray
method IsBoolean
bool TypeDB.Driver.Api.Answer.IJSON.IsBoolean
Checks if this JSON value is a boolean.
bool
json.IsBoolean
method IsNull
bool TypeDB.Driver.Api.Answer.IJSON.IsNull
Checks if this JSON value is null.
bool
json.IsNull
method IsNumber
bool TypeDB.Driver.Api.Answer.IJSON.IsNumber
Checks if this JSON value is a number.
bool
json.IsNumber
QueryType
class
Package: TypeDB.Driver.Api
Used to specify the type of the executed query.
conceptRow.QueryType
Enumerator
Read
A read-only query that retrieves data.
Write
A write query that modifies data.
Schema
A schema query that modifies the schema.
QueryTypeExtensions
class
Package: TypeDB.Driver.Api
Extension methods for QueryType.
method FromNative
static QueryType FromNative(Pinvoke::QueryType nativeType)
Creates a QueryType from a native QueryType.
QueryType
Promise< T >
class
Package: TypeDB.Driver.Common
A Promise represents an asynchronous network operation.
The request it represents is performed immediately. The response is only retrieved once the Promise is Resolved.
method Map< TFrom, TTo >
static Promise< TTo > TypeDB.Driver.Common.Promise< T >.Map< TFrom, TTo >(Func< TFrom? > resolver, Func< TFrom, TTo > selector)
Helper function to map promises.
| Name | Description | Type |
|---|---|---|
|
The function to wrap into the promise |
|
|
The mapping (like Select from Linq) function |
|
Promise< TTo >
Promise<TFrom>.Map<TFrom, TTo>(resolver, selector);
Concept
IConcept
class
Package: TypeDB.Driver.Api
The base interface for all concepts in TypeDB.
method AsAttribute
IAttribute AsAttribute()
Casts the concept to IAttribute.
Implemented in TypeDB.Driver.Api.IAttribute.
IAttribute
concept.AsAttribute()
method AsAttributeType
IAttributeType AsAttributeType()
Casts the concept to IAttributeType.
Implemented in TypeDB.Driver.Api.IAttributeType.
IAttributeType
concept.AsAttributeType()
method AsEntity
IEntity AsEntity()
Casts the concept to IEntity.
Implemented in TypeDB.Driver.Api.IEntity.
IEntity
concept.AsEntity()
method AsEntityType
IEntityType AsEntityType()
Casts the concept to IEntityType.
Implemented in TypeDB.Driver.Api.IEntityType.
IEntityType
concept.AsEntityType()
method AsInstance
IInstance AsInstance()
Casts the concept to IInstance.
Implemented in TypeDB.Driver.Api.IInstance.
IInstance
concept.AsInstance()
method AsRelation
IRelation AsRelation()
Casts the concept to IRelation.
Implemented in TypeDB.Driver.Api.IRelation.
IRelation
concept.AsRelation()
method AsRelationType
IRelationType AsRelationType()
Casts the concept to IRelationType.
Implemented in TypeDB.Driver.Api.IRelationType.
IRelationType
concept.AsRelationType()
method AsRoleType
IRoleType AsRoleType()
Casts the concept to IRoleType.
Implemented in TypeDB.Driver.Api.IRoleType.
IRoleType
concept.AsRoleType()
method AsType
IType AsType()
Casts the concept to IType.
Implemented in TypeDB.Driver.Api.IType.
IType
concept.AsType()
method AsValue
IValue AsValue()
Casts the concept to IValue.
Implemented in TypeDB.Driver.Api.IValue.
IValue
concept.AsValue()
method GetLabel
string GetLabel()
Retrieves the unique label of the concept. If this is an Instance, returns the label of the type of this instance ("unknown" if type fetching is disabled). If this is a Value, returns the label of the value type. If this is a Type, returns the label of the type.
string
concept.GetLabel()
method IsAttribute
bool IsAttribute()
Checks if the concept is an IAttribute.
Implemented in TypeDB.Driver.Api.IAttribute.
bool
concept.IsAttribute()
method IsAttributeType
bool IsAttributeType()
Checks if the concept is an IAttributeType.
Implemented in TypeDB.Driver.Api.IAttributeType.
bool
concept.IsAttributeType()
method IsBoolean
bool IsBoolean()
Returns true if the value which this Concept holds is of type boolean or if this Concept is an AttributeType of type boolean.
bool
concept.IsBoolean()
method IsDate
bool IsDate()
Returns true if the value which this Concept holds is of type date or if this Concept is an AttributeType of type date.
bool
concept.IsDate()
method IsDatetime
bool IsDatetime()
Returns true if the value which this Concept holds is of type datetime or if this Concept is an AttributeType of type datetime.
bool
concept.IsDatetime()
method IsDatetimeTZ
bool IsDatetimeTZ()
Returns true if the value which this Concept holds is of type datetime-tz or if this Concept is an AttributeType of type datetime-tz.
bool
concept.IsDatetimeTZ()
method IsDecimal
bool IsDecimal()
Returns true if the value which this Concept holds is of type decimal or if this Concept is an AttributeType of type decimal.
bool
concept.IsDecimal()
method IsDouble
bool IsDouble()
Returns true if the value which this Concept holds is of type double or if this Concept is an AttributeType of type double.
bool
concept.IsDouble()
method IsDuration
bool IsDuration()
Returns true if the value which this Concept holds is of type duration or if this Concept is an AttributeType of type duration.
bool
concept.IsDuration()
method IsEntity
bool IsEntity()
Checks if the concept is an IEntity.
Implemented in TypeDB.Driver.Api.IEntity.
bool
concept.IsEntity()
method IsEntityType
bool IsEntityType()
Checks if the concept is an IEntityType.
Implemented in TypeDB.Driver.Api.IEntityType.
bool
concept.IsEntityType()
method IsInstance
bool IsInstance()
Checks if the concept is an instance (entity, relation, or attribute).
Implemented in TypeDB.Driver.Api.IInstance.
bool
concept.IsInstance()
method IsInteger
bool IsInteger()
Returns true if the value which this Concept holds is of type integer or if this Concept is an AttributeType of type integer.
bool
concept.IsInteger()
method IsRelation
bool IsRelation()
Checks if the concept is a IRelation.
Implemented in TypeDB.Driver.Api.IRelation.
bool
concept.IsRelation()
method IsRelationType
bool IsRelationType()
Checks if the concept is a IRelationType.
Implemented in TypeDB.Driver.Api.IRelationType.
bool
concept.IsRelationType()
method IsRoleType
bool IsRoleType()
Checks if the concept is a IRoleType.
Implemented in TypeDB.Driver.Api.IRoleType.
bool
concept.IsRoleType()
method IsString
bool IsString()
Returns true if the value which this Concept holds is of type string or if this Concept is an AttributeType of type string.
bool
concept.IsString()
method IsStruct
bool IsStruct()
Returns true if the value which this Concept holds is of type struct or if this Concept is an AttributeType of type struct.
bool
concept.IsStruct()
method IsType
bool IsType()
Checks if the concept is a IType.
Implemented in TypeDB.Driver.Api.IType.
bool
concept.IsType()
method IsValue
bool IsValue()
Checks if the concept is a IValue.
Implemented in TypeDB.Driver.Api.IValue.
bool
concept.IsValue()
method TryGetBoolean
bool? TryGetBoolean()
Returns a boolean value of this Concept. If it’s not a Value or it has another type, returns null.
bool?
concept.TryGetBoolean()
method TryGetDate
DateOnly? TryGetDate()
Returns a date value of this Concept. If it’s not a Value or it has another type, returns null.
DateOnly?
concept.TryGetDate()
method TryGetDatetime
Datetime? TryGetDatetime()
Returns a datetime value of this Concept. If it’s not a Value or it has another type, returns null.
Datetime?
concept.TryGetDatetime()
method TryGetDatetimeTZ
DatetimeTZ? TryGetDatetimeTZ()
Returns a datetime-tz value of this Concept. If it’s not a Value or it has another type, returns null.
DatetimeTZ?
concept.TryGetDatetimeTZ()
method TryGetDecimal
decimal? TryGetDecimal()
Returns a decimal value of this Concept. If it’s not a Value or it has another type, returns null.
decimal?
concept.TryGetDecimal()
method TryGetDouble
double? TryGetDouble()
Returns a double value of this Concept. If it’s not a Value or it has another type, returns null.
double?
concept.TryGetDouble()
method TryGetDuration
Duration? TryGetDuration()
Returns a duration value of this Concept. If it’s not a Value or it has another type, returns null.
Duration?
concept.TryGetDuration()
method TryGetIID
string? TryGetIID()
Retrieves the unique id (IID) of the Concept. Returns null if absent.
string?
concept.TryGetIID()
method TryGetInteger
long? TryGetInteger()
Returns an integer value of this Concept. If it’s not a Value or it has another type, returns null.
long?
concept.TryGetInteger()
method TryGetLabel
string? TryGetLabel()
Retrieves the unique label of the concept, or null if type fetching is disabled for instances.
string?
concept.TryGetLabel()
method TryGetString
string? TryGetString()
Returns a string value of this Concept. If it’s not a Value or it has another type, returns null.
string?
concept.TryGetString()
method TryGetStruct
IReadOnlyDictionary< string, IValue? >? TryGetStruct()
Returns a struct value of this Concept. If it’s not a Value or it has another type, returns null.
IReadOnlyDictionary< string, IValue? >?
concept.TryGetStruct()
Transitivity
class
Package: TypeDB.Driver.Api.IConcept
Used to specify whether we need explicit or transitive subtyping, instances, etc.
attributeType.GetOwners(transaction, annotation, Transitivity.Explicit)
TypeDB.Driver.Api.IConcept.Transitivity
Transitivity
Used to specify whether we need explicit or transitive subtyping, instances, etc.
Definition IConcept.cs:593
Schema
IType
class
Package: TypeDB.Driver.Api
Supertypes:
-
TypeDB.Driver.Api.IConcept
Represents a type in TypeDB. In TypeDB 3.0, types are read-only data returned from queries.
IEntityType
class
Package: TypeDB.Driver.Api
Supertypes:
-
TypeDB.Driver.Api.IType -
TypeDB.Driver.Api.IConcept
Represents an entity type in TypeDB. Entity types represent the classification of independent objects in the data model. In TypeDB 3.0, types are read-only data returned from queries.
IRelationType
class
Package: TypeDB.Driver.Api
Supertypes:
-
TypeDB.Driver.Api.IType -
TypeDB.Driver.Api.IConcept
Represents a relation type in TypeDB. Relation types represent relationships between types and have roles. In TypeDB 3.0, types are read-only data returned from queries.
IRoleType
class
Package: TypeDB.Driver.Api
Supertypes:
-
TypeDB.Driver.Api.IType -
TypeDB.Driver.Api.IConcept
Represents a role type in TypeDB. Roles are special internal types used by relations. In TypeDB 3.0, types are read-only data returned from queries.
IAttributeType
class
Package: TypeDB.Driver.Api
Supertypes:
-
TypeDB.Driver.Api.IType -
TypeDB.Driver.Api.IConcept
Represents an attribute type in TypeDB. Attribute types represent properties that other types can own. In TypeDB 3.0, types are read-only data returned from queries.
Label
class
Package: TypeDB.Driver.Common
A Label holds the uniquely identifying name of a type.
It consists of an optional scope, and a name, represented scope:name. The scope is used only used to distinguish between role-types of the same name declared in different relation types.
| Name | Type | Description |
|---|---|---|
|
|
Returns the name of this Label. Examples
|
|
|
Returns the scope of this Label. Examples
|
method Equals
override bool Equals(object? obj)
Checks if this Label is equal to another object.
| Name | Description | Type |
|---|---|---|
|
Object to compare with |
|
override bool
label.Equals(obj);
method Label
Label(string? scope, string name)
Creates a Label from a specified scope and name.
| Name | Description | Type |
|---|---|---|
|
Label scope |
|
|
Label name |
|
Label
new Label("relation", "role");
method Label
Label(string name)
Creates a Label from a specified name.
| Name | Description | Type |
|---|---|---|
|
Label name |
|
Label
new Label("entity");
Data
IInstance
class
Package: TypeDB.Driver.Api
Supertypes:
-
TypeDB.Driver.Api.IConcept
Represents an instance (entity, relation, or attribute) in TypeDB. In TypeDB 3.0, instances are read-only data returned from queries.
method AsInstance
IInstance IConcept. AsInstance()
Casts the concept to IInstance.
Implements TypeDB.Driver.Api.IConcept.
IInstance IConcept.
concept.AsInstance()
IEntity
class
Package: TypeDB.Driver.Api
Supertypes:
-
TypeDB.Driver.Api.IInstance -
TypeDB.Driver.Api.IConcept
Represents an entity instance in TypeDB. Entity instances are independent objects in the data model. In TypeDB 3.0, instances are read-only data returned from queries.
method AsEntity
IEntity IConcept. AsEntity()
Casts the concept to IEntity.
Implements TypeDB.Driver.Api.IConcept.
IEntity IConcept.
concept.AsEntity()
method IsEntity
bool IConcept. IsEntity()
Checks if the concept is an IEntity.
Implements TypeDB.Driver.Api.IConcept.
bool IConcept.
concept.IsEntity()
IRelation
class
Package: TypeDB.Driver.Api
Supertypes:
-
TypeDB.Driver.Api.IInstance -
TypeDB.Driver.Api.IConcept
Represents a relation instance in TypeDB. Relation instances connect multiple instances together through roles. In TypeDB 3.0, instances are read-only data returned from queries.
method AsRelation
IRelation IConcept. AsRelation()
Casts the concept to IRelation.
Implements TypeDB.Driver.Api.IConcept.
IRelation IConcept.
concept.AsRelation()
method IsRelation
bool IConcept. IsRelation()
Checks if the concept is a IRelation.
Implements TypeDB.Driver.Api.IConcept.
bool IConcept.
concept.IsRelation()
IAttribute
class
Package: TypeDB.Driver.Api
Supertypes:
-
TypeDB.Driver.Api.IInstance -
TypeDB.Driver.Api.IConcept
Represents an attribute instance in TypeDB. Attribute instances represent properties with values that can be owned by other instances. In TypeDB 3.0, instances are read-only data returned from queries.
method AsAttribute
IAttribute IConcept. AsAttribute()
Casts the concept to IAttribute.
Implements TypeDB.Driver.Api.IConcept.
IAttribute IConcept.
concept.AsAttribute()
method IsAttribute
bool IConcept. IsAttribute()
Checks if the concept is an IAttribute.
Implements TypeDB.Driver.Api.IConcept.
bool IConcept.
concept.IsAttribute()
IValue
class
Package: TypeDB.Driver.Api
Supertypes:
-
TypeDB.Driver.Api.IConcept
Represents a value concept in TypeDB. In TypeDB 3.0, values are read-only data returned from queries.
method AsValue
IValue IConcept. AsValue()
Casts the concept to IValue.
Implements TypeDB.Driver.Api.IConcept.
IValue IConcept.
concept.AsValue()
method Get
object Get()
Returns an untyped object value of this value concept. This is useful for value equality or printing without having to switch on the actual contained value.
object
method GetBoolean
bool GetBoolean()
Returns a boolean value of this value concept. If the value has another type, raises an exception.
bool
method GetDate
DateOnly GetDate()
Returns a date value of this value concept. If the value has another type, raises an exception.
DateOnly
method GetDatetime
Datetime GetDatetime()
Returns a datetime value of this value concept. If the value has another type, raises an exception.
Datetime
method GetDatetimeTZ
DatetimeTZ GetDatetimeTZ()
Returns a datetime with timezone value of this value concept. If the value has another type, raises an exception.
DatetimeTZ
method GetDecimal
decimal GetDecimal()
Returns a decimal value of this value concept. If the value has another type, raises an exception.
decimal
method GetDouble
double GetDouble()
Returns a double value of this value concept. If the value has another type, raises an exception.
double
method GetDuration
Duration GetDuration()
Returns a duration value of this value concept. If the value has another type, raises an exception.
Duration
method GetInteger
long GetInteger()
Returns an integer (long) value of this value concept. If the value has another type, raises an exception.
long
method GetString
string GetString()
Returns a string value of this value concept. If the value has another type, raises an exception.
string
method GetStruct
IReadOnlyDictionary< string, IValue? > GetStruct()
Returns a struct value of this value concept represented as a dictionary from field names to values. If the value has another type, raises an exception.
IReadOnlyDictionary< string, IValue? >
Value
Datetime
class
Package: TypeDB.Driver.Common
Represents a datetime with nanosecond precision. C#'s System.DateTime only has tick precision (100ns, 7 fractional digits), losing the last 2 digits of TypeDB’s 9-digit nanosecond precision. This class stores the full-precision seconds and subsecond nanoseconds separately, similar to Java’s Instant.
method DateTime
DateTime TypeDB.Driver.Common.Datetime.DateTime
Gets a System.DateTime derived from this value. Note: this has only tick precision (100ns) and may lose the last 2 nanosecond digits.
DateTime
method Datetime
Datetime(long seconds, uint subsecNanos)
Creates a Datetime from Unix epoch seconds and subsecond nanoseconds.
| Name | Description | Type |
|---|---|---|
|
Seconds since Unix epoch (1970-01-01T00:00:00Z). |
|
|
Nanoseconds within the second (0–999,999,999). |
|
Datetime
method Parse
static Datetime Parse(string value)
Parses a datetime string in TypeDB format, preserving all 9 fractional digits. Example: "2024-09-20T16:40:05.123456789".
Datetime
method Seconds
long TypeDB.Driver.Common.Datetime.Seconds
Gets the Unix epoch seconds component.
long
method SubsecNanos
uint TypeDB.Driver.Common.Datetime.SubsecNanos
Gets the subsecond nanoseconds component (0–999,999,999).
uint
method ToString
override string ToString()
Formats the datetime as an ISO-8601 string with nanosecond precision. Subsecond precision is omitted if zero, otherwise trailing zeros are trimmed.
override string
DatetimeTZ
class
Package: TypeDB.Driver.Common
Represents a datetime with timezone information and nanosecond precision. C#'s DateTimeOffset cannot carry IANA timezone names (e.g., "Europe/London"), so this class wraps a DateTimeOffset alongside the resolved TimeZoneInfo. Additionally, DateTimeOffset only has tick precision (100ns), so this class stores subsecond nanoseconds separately to preserve TypeDB’s full 9-digit precision. This mirrors Java’s ZonedDateTime which preserves both zone ID and nanosecond precision.
method DateTimeOffset
DateTimeOffset TypeDB.Driver.Common.DatetimeTZ.DateTimeOffset
Gets the local date and time with its UTC offset. For IANA zones, the offset is derived from the zone’s rules at the stored instant. Note: this has only tick precision (100ns) and may lose the last 2 nanosecond digits.
DateTimeOffset
method DatetimeTZ
DatetimeTZ(DateTime utcDateTime, string zoneName, uint subsecNanos = 0)
Creates a DatetimeTZ with an IANA timezone from a UTC datetime. The local time and offset are computed from the zone’s rules at the given UTC instant. This mirrors Java’s ZonedDateTime.ofInstant(Instant, ZoneId).
| Name | Description | Type |
|---|---|---|
|
The UTC datetime (Kind should be Utc or Unspecified). |
|
|
The IANA timezone name (e.g., "Europe/London"). |
|
|
Subsecond nanoseconds (0–999,999,999), preserving TypeDB’s full nanosecond precision. Defaults to 0. |
DatetimeTZ
method DatetimeTZ
DatetimeTZ(DateTimeOffset dateTimeOffset, uint subsecNanos = 0)
Creates a DatetimeTZ with a fixed UTC offset (no IANA zone).
| Name | Description | Type |
|---|---|---|
|
The date, time, and UTC offset. |
|
|
Subsecond nanoseconds (0–999,999,999), preserving TypeDB’s full nanosecond precision. Defaults to 0. |
DatetimeTZ
method IsFixedOffset
bool TypeDB.Driver.Common.DatetimeTZ.IsFixedOffset
Gets whether this datetime-tz uses a fixed UTC offset (true) or an IANA zone (false).
bool
method Parse
static DatetimeTZ Parse(string value)
Parses a datetime-tz string in TypeDB format, preserving all 9 fractional digits. IANA zones: "2024-09-20T16:40:05.000000001 Europe/London" (local time + zone name) Fixed offsets: "2024-09-20T16:40:05.000000001+0100" (local time + offset without colon) UTC shorthand: "2024-09-20T16:40:05Z".
DatetimeTZ
method SubsecNanos
uint TypeDB.Driver.Common.DatetimeTZ.SubsecNanos
Gets the subsecond nanoseconds component (0–999,999,999). This preserves TypeDB’s full nanosecond precision beyond what DateTimeOffset can represent.
uint
method ToString
override string ToString()
Formats the datetime-tz as an ISO-8601 string with nanosecond precision. Fixed offsets produce: "2024-09-20T16:40:05.123456789+01:00" IANA zones produce: "2024-09-20T16:40:05.123456789+01:00 Europe/London" Subsecond precision is omitted if zero, otherwise trailing zeros are trimmed.
override string
method ZoneInfo
TimeZoneInfo? TypeDB.Driver.Common.DatetimeTZ.ZoneInfo
Gets the resolved TimeZoneInfo, or null for fixed offsets.
TimeZoneInfo?
method ZoneName
string? TypeDB.Driver.Common.DatetimeTZ.ZoneName
Gets the IANA timezone name (e.g., "Europe/London"), or null for fixed offsets. This is the original name from the database, independent of platform timezone ID conventions.
string?
Analyze
IAnalyzedQuery
class
Package: TypeDB.Driver.Api.Analyze
An AnalyzedQuery contains the server’s representation of the query and preamble functions, as well as the result of types inferred for each variable by type-inference.
method Fetch
IFetch? TypeDB.Driver.Api.Analyze.IAnalyzedQuery.Fetch
Gets a representation of the Fetch stage of the query, if it has one.
IFetch?
IConjunction
class
Package: TypeDB.Driver.Api.Analyze
A representation of the constraints involved in a query, and types inferred for each variable.
method AnnotatedVariables
IEnumerable< IVariable > TypeDB.Driver.Api.Analyze.IConjunction.AnnotatedVariables
Gets the variables that have annotations in this conjunction.
IEnumerable< IVariable >
IConjunctionID
class
Package: TypeDB.Driver.Api.Analyze
Identifies a conjunction within a query pipeline.
IConstraint
class
Package: TypeDB.Driver.Api.Analyze
A representation of a TypeQL constraint.
method AsComparison
IComparison AsComparison()
Casts this constraint to a comparison constraint.
IComparison
method AsExpression
IExpression AsExpression()
Casts this constraint to an expression constraint.
IExpression
method AsFunctionCall
IFunctionCall AsFunctionCall()
Casts this constraint to a function call constraint.
IFunctionCall
method AsLabel
ILabelConstraint AsLabel()
Casts this constraint to a label constraint.
ILabelConstraint
method AsRelates
IRelates AsRelates()
Casts this constraint to a relates constraint.
IRelates
method AsValue
IValueConstraint AsValue()
Casts this constraint to a value constraint.
IValueConstraint
method IsComparison
bool TypeDB.Driver.Api.Analyze.IConstraint.IsComparison
Checks if this constraint is a comparison constraint.
bool
method IsExpression
bool TypeDB.Driver.Api.Analyze.IConstraint.IsExpression
Checks if this constraint is an expression constraint.
bool
method IsFunctionCall
bool TypeDB.Driver.Api.Analyze.IConstraint.IsFunctionCall
Checks if this constraint is a function call constraint.
bool
method IsHas
bool TypeDB.Driver.Api.Analyze.IConstraint.IsHas
Checks if this constraint is a has constraint.
bool
method IsIid
bool TypeDB.Driver.Api.Analyze.IConstraint.IsIid
Checks if this constraint is an iid constraint.
bool
method IsIs
bool TypeDB.Driver.Api.Analyze.IConstraint.IsIs
Checks if this constraint is an is constraint.
bool
method IsIsa
bool TypeDB.Driver.Api.Analyze.IConstraint.IsIsa
Checks if this constraint is an isa constraint.
bool
method IsKind
bool TypeDB.Driver.Api.Analyze.IConstraint.IsKind
Checks if this constraint is a kind constraint.
bool
method IsLabel
bool TypeDB.Driver.Api.Analyze.IConstraint.IsLabel
Checks if this constraint is a label constraint.
bool
method IsLinks
bool TypeDB.Driver.Api.Analyze.IConstraint.IsLinks
Checks if this constraint is a links constraint.
bool
method IsNot
bool TypeDB.Driver.Api.Analyze.IConstraint.IsNot
Checks if this constraint is a not constraint.
bool
method IsOr
bool TypeDB.Driver.Api.Analyze.IConstraint.IsOr
Checks if this constraint is an or constraint.
bool
method IsOwns
bool TypeDB.Driver.Api.Analyze.IConstraint.IsOwns
Checks if this constraint is an owns constraint.
bool
method IsPlays
bool TypeDB.Driver.Api.Analyze.IConstraint.IsPlays
Checks if this constraint is a plays constraint.
bool
method IsRelates
bool TypeDB.Driver.Api.Analyze.IConstraint.IsRelates
Checks if this constraint is a relates constraint.
bool
method IsSub
bool TypeDB.Driver.Api.Analyze.IConstraint.IsSub
Checks if this constraint is a sub constraint.
bool
method IsTry
bool TypeDB.Driver.Api.Analyze.IConstraint.IsTry
Checks if this constraint is a try constraint.
bool
method IsValue
bool TypeDB.Driver.Api.Analyze.IConstraint.IsValue
Checks if this constraint is a value constraint.
bool
IComparison
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IConstraint
Represents a comparison: lhs comparator rhs.
method Comparator
Pinvoke.Comparator TypeDB.Driver.Api.Analyze.IComparison.Comparator
The comparator operator.
Pinvoke.Comparator
method ComparatorSymbol
string TypeDB.Driver.Api.Analyze.IComparison.ComparatorSymbol
The symbol representation of the comparator.
string
IExpression
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IConstraint
Represents an expression: let assigned = expression.
method Arguments
IEnumerable< IConstraintVertex > TypeDB.Driver.Api.Analyze.IExpression.Arguments
The arguments to the expression.
IEnumerable< IConstraintVertex >
IFunctionCall
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IConstraint
Represents a function call: let assigned = name(arguments)
method Arguments
IEnumerable< IConstraintVertex > TypeDB.Driver.Api.Analyze.IFunctionCall.Arguments
The arguments to the function call.
IEnumerable< IConstraintVertex >
IHas
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IConstraint
Represents a "has" constraint: owner has attribute.
method Attribute
IConstraintVertex TypeDB.Driver.Api.Analyze.IHas.Attribute
The attribute vertex of the constraint.
IConstraintVertex
IIid
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IConstraint
Represents an IID constraint: concept iid iid_value.
IIs
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IConstraint
Represents an "is" constraint: lhs is rhs.
IIsa
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IConstraint
Represents an "isa" constraint: instance isa(!) type.
method Exactness
Pinvoke.ConstraintExactness TypeDB.Driver.Api.Analyze.IIsa.Exactness
The exactness of the constraint.
Pinvoke.ConstraintExactness
IKind
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IConstraint
Represents a kind constraint: kind type.
ILabelConstraint
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IConstraint
Represents a label constraint: type label label_value.
ILinks
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IConstraint
Represents a "links" constraint: relation links (role: player)
method Exactness
Pinvoke.ConstraintExactness TypeDB.Driver.Api.Analyze.ILinks.Exactness
The exactness of the constraint.
Pinvoke.ConstraintExactness
method Player
IConstraintVertex TypeDB.Driver.Api.Analyze.ILinks.Player
The player vertex of the constraint.
IConstraintVertex
INot
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IConstraint
Represents a "not" constraint: not { conjunction }.
IOr
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IConstraint
Represents an "or" constraint: { branches[0] } or { branches[1] } [or …].
IOwns
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IConstraint
Represents an "owns" constraint: owner owns attribute.
method Attribute
IConstraintVertex TypeDB.Driver.Api.Analyze.IOwns.Attribute
The attribute vertex of the constraint.
IConstraintVertex
IPlays
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IConstraint
Represents a "plays" constraint: player plays role.
method Exactness
Pinvoke.ConstraintExactness TypeDB.Driver.Api.Analyze.IPlays.Exactness
The exactness of the constraint.
Pinvoke.ConstraintExactness
IRelates
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IConstraint
Represents a "relates" constraint: relation relates role.
method Exactness
Pinvoke.ConstraintExactness TypeDB.Driver.Api.Analyze.IRelates.Exactness
The exactness of the constraint.
Pinvoke.ConstraintExactness
ISpan
class
Package: TypeDB.Driver.Api.Analyze
The span of a constraint in the source query.
ISub
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IConstraint
Represents a "sub" constraint: subtype sub(!) supertype.
method Exactness
Pinvoke.ConstraintExactness TypeDB.Driver.Api.Analyze.ISub.Exactness
The exactness of the constraint.
Pinvoke.ConstraintExactness
ITry
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IConstraint
Represents a "try" constraint: try { conjunction }.
IValueConstraint
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IConstraint
Represents a value constraint: attribute_type value value_type.
IConstraintVertex
class
Package: TypeDB.Driver.Api.Analyze
The answer to a TypeDB query is a set of concepts which satisfy the constraints in the query. A ConstraintVertex is either a variable, or some identifier of the concept. A Variable is a vertex the query must match and return. A Label uniquely identifies a type. A Value represents a primitive value literal in TypeDB. A NamedRole vertex is used in links and relates constraints, as multiple relations may have roles with the same name.
method AsNamedRole
INamedRole AsNamedRole()
Down-casts this vertex to a named role.
INamedRole
method IsLabel
bool TypeDB.Driver.Api.Analyze.IConstraintVertex.IsLabel
Checks if this vertex is a label.
bool
method IsNamedRole
bool TypeDB.Driver.Api.Analyze.IConstraintVertex.IsNamedRole
Checks if this vertex is a named role.
bool
IFetch
class
Package: TypeDB.Driver.Api.Analyze
A representation of the 'fetch' stage of a query.
method IsLeaf
bool TypeDB.Driver.Api.Analyze.IFetch.IsLeaf
Checks if this fetch is a leaf.
bool
method IsList
bool TypeDB.Driver.Api.Analyze.IFetch.IsList
Checks if this fetch is a list.
bool
IFetchLeaf
class
Package: TypeDB.Driver.Api.Analyze
The leaf of a Fetch object. Holds information on the value it can hold.
IFunction
class
Package: TypeDB.Driver.Api.Analyze
Holds a representation of a function, and the result of type-inference for each variable.
method ArgumentAnnotations
IEnumerable< IVariableAnnotations > TypeDB.Driver.Api.Analyze.IFunction.ArgumentAnnotations
Gets the type annotations for each argument of the function.
IEnumerable< IVariableAnnotations >
method ArgumentVariables
IEnumerable< IVariable > TypeDB.Driver.Api.Analyze.IFunction.ArgumentVariables
Gets the variables which are the arguments of the function.
IEnumerable< IVariable >
method Body
IPipeline TypeDB.Driver.Api.Analyze.IFunction.Body
Gets the pipeline which forms the body of the function.
IPipeline
IReturnOperation
class
Package: TypeDB.Driver.Api.Analyze
A representation of the return operation of a function.
method AsCheck
ICheckReturn AsCheck()
Casts this return operation to a check return.
ICheckReturn
method AsReduce
IReduceReturn AsReduce()
Casts this return operation to a reduce return.
IReduceReturn
method AsSingle
ISingleReturn AsSingle()
Casts this return operation to a single return.
ISingleReturn
method AsStream
IStreamReturn AsStream()
Casts this return operation to a stream return.
IStreamReturn
method IsCheck
bool TypeDB.Driver.Api.Analyze.IReturnOperation.IsCheck
Checks if this is a check return.
bool
method IsReduce
bool TypeDB.Driver.Api.Analyze.IReturnOperation.IsReduce
Checks if this is a reduce return.
bool
method IsSingle
bool TypeDB.Driver.Api.Analyze.IReturnOperation.IsSingle
Checks if this is a single return.
bool
ICheckReturn
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IReturnOperation
Indicates the function returns a boolean.
IReduceReturn
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IReturnOperation
Indicates the function returns an aggregation over the rows in the body.
ISingleReturn
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IReturnOperation
Indicates the function returns a single row of the specified variables.
IStreamReturn
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IReturnOperation
Indicates the function returns a stream of concepts.
INamedRole
class
Package: TypeDB.Driver.Api.Analyze
'links' and 'relates' constraints accept unscoped role names. Since an unscoped role-name does not uniquely identify a role-type, (different role-types belonging to different relation types may share the same name) an internal variable is introduced to handle the ambiguity.
IPipeline
class
Package: TypeDB.Driver.Api.Analyze
A representation of a query pipeline.
method GetConjunction
IConjunction? GetConjunction(IConjunctionID conjunctionID)
Gets the conjunction for the specified conjunction ID.
IConjunction?
IPipelineStage
class
Package: TypeDB.Driver.Api.Analyze
Representation of a stage in a pipeline.
method AsDistinct
IDistinctStage AsDistinct()
Casts this stage to a distinct stage.
IDistinctStage
method AsRequire
IRequireStage AsRequire()
Casts this stage to a require stage.
IRequireStage
method IsDelete
bool TypeDB.Driver.Api.Analyze.IPipelineStage.IsDelete
Checks if this stage is a delete stage.
bool
method IsDistinct
bool TypeDB.Driver.Api.Analyze.IPipelineStage.IsDistinct
Checks if this stage is a distinct stage.
bool
method IsInsert
bool TypeDB.Driver.Api.Analyze.IPipelineStage.IsInsert
Checks if this stage is an insert stage.
bool
method IsLimit
bool TypeDB.Driver.Api.Analyze.IPipelineStage.IsLimit
Checks if this stage is a limit stage.
bool
method IsMatch
bool TypeDB.Driver.Api.Analyze.IPipelineStage.IsMatch
Checks if this stage is a match stage.
bool
method IsOffset
bool TypeDB.Driver.Api.Analyze.IPipelineStage.IsOffset
Checks if this stage is an offset stage.
bool
method IsPut
bool TypeDB.Driver.Api.Analyze.IPipelineStage.IsPut
Checks if this stage is a put stage.
bool
method IsReduce
bool TypeDB.Driver.Api.Analyze.IPipelineStage.IsReduce
Checks if this stage is a reduce stage.
bool
method IsRequire
bool TypeDB.Driver.Api.Analyze.IPipelineStage.IsRequire
Checks if this stage is a require stage.
bool
method IsSelect
bool TypeDB.Driver.Api.Analyze.IPipelineStage.IsSelect
Checks if this stage is a select stage.
bool
method IsSort
bool TypeDB.Driver.Api.Analyze.IPipelineStage.IsSort
Checks if this stage is a sort stage.
bool
IDeleteStage
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IPipelineStage
Represents a "delete" stage: delete block; deleted_variables;.
IDistinctStage
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IPipelineStage
Represents a "distinct" stage.
IInsertStage
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IPipelineStage
Represents an "insert" stage: insert block.
ILimitStage
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IPipelineStage
Represents a "limit" stage: limit n.
IMatchStage
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IPipelineStage
Represents a "match" stage: match block.
IOffsetStage
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IPipelineStage
Represents an "offset" stage: offset n.
IPutStage
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IPipelineStage
Represents a "put" stage: put block.
IReduceAssignment
class
Package: TypeDB.Driver.Api.Analyze
An assignment of a reducer to a variable.
IReduceStage
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IPipelineStage
Represents a "reduce" stage: reduce reducers groupby groupby.
IRequireStage
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IPipelineStage
Represents a "require" stage: require variables.
ISelectStage
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IPipelineStage
Represents a "select" stage: select variables.
ISortVariable
class
Package: TypeDB.Driver.Api.Analyze
A variable and its sort order.
ISortStage
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IPipelineStage
Represents a "sort" stage: sort variables-and-order.
IUpdateStage
class
Package: TypeDB.Driver.Api.Analyze
Supertypes:
-
TypeDB.Driver.Api.Analyze.IPipelineStage
Represents an "update" stage: update block.
IReducer
class
Package: TypeDB.Driver.Api.Analyze
Representation of a reducer used either in a reduce stage or in a function’s return operation.
IVariableAnnotations
class
Package: TypeDB.Driver.Api.Analyze
Represents the type annotations inferred for a variable.
method AsInstance
IEnumerable< IType > AsInstance()
Gets the possible types of instances this variable can hold. Only valid if IsInstance is true.
IEnumerable< IType >
method AsType
IEnumerable< IType > AsType()
Gets the possible types this variable can hold. Only valid if IsType is true.
IEnumerable< IType >
method AsValue
IEnumerable< string > AsValue()
Gets the possible value types this variable can hold. Only valid if IsValue is true.
IEnumerable< string >
method IsInstance
bool TypeDB.Driver.Api.Analyze.IVariableAnnotations.IsInstance
Checks if this variable is an instance variable.
bool
method IsType
bool TypeDB.Driver.Api.Analyze.IVariableAnnotations.IsType
Checks if this variable is a type variable.
bool