├── .bazelrc ├── .bazelversion ├── .circleci ├── config.yml └── windows │ ├── clib │ ├── deploy_release.bat │ ├── deploy_snapshot.bat │ └── test_assembly.bat │ ├── cpp │ ├── deploy_release.bat │ ├── deploy_snapshot.bat │ └── test_assembly.bat │ ├── csharp │ ├── deploy_release.bat │ ├── deploy_snapshot.bat │ └── test_deploy_snapshot.bat │ ├── dependencies.config │ ├── git.patch │ ├── java │ ├── deploy_release.bat │ ├── deploy_snapshot.bat │ └── test_deploy_snapshot.bat │ ├── prepare.bat │ └── python │ ├── deploy_release.bat │ ├── deploy_snapshot.bat │ └── test_deploy_snapshot.bat ├── .factory ├── automation.yml ├── test-cluster.sh └── test-community.sh ├── .gitattributes ├── .github ├── CODEOWNERS ├── ISSUE_TEMPLATE │ ├── BUG_REPORT.md │ ├── FEATURE_REQUEST.md │ ├── LANGUAGE_DRIVER_REQUEST.md │ └── REFACTOR.md └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── BUILD ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── README.md ├── RELEASE_NOTES_LATEST.md ├── RELEASE_TEMPLATE.md ├── VERSION ├── WORKSPACE ├── c ├── .clang-format ├── BUILD ├── Cargo.lock ├── Cargo.toml ├── README.md ├── cbindgen.toml ├── docs_structure.bzl ├── src │ ├── answer.rs │ ├── common.rs │ ├── concept │ │ ├── concept.rs │ │ ├── instance.rs │ │ └── mod.rs │ ├── connection.rs │ ├── database.rs │ ├── database_manager.rs │ ├── error.rs │ ├── iterator.rs │ ├── lib.rs │ ├── memory.rs │ ├── promise.rs │ ├── query_options.rs │ ├── transaction.rs │ ├── transaction_options.rs │ ├── user.rs │ └── user_manager.rs ├── swig │ ├── typedb_driver_csharp.swg │ ├── typedb_driver_go.swg │ ├── typedb_driver_java.swg │ └── typedb_driver_python.swg ├── tests │ ├── assembly │ │ ├── BUILD │ │ ├── CMakeLists.txt │ │ └── test.c │ └── integration │ │ ├── BUILD │ │ ├── common.c │ │ ├── common.h │ │ ├── driver_test.c │ │ ├── gtest_runner.cpp │ │ └── tests.h └── typedb_driver.i ├── cpp ├── BUILD ├── README.md ├── build_opts.bzl ├── docs_structure.bzl ├── include │ ├── typedb │ │ ├── answer │ │ │ ├── concept_map.hpp │ │ │ ├── concept_map_group.hpp │ │ │ ├── explainable.hpp │ │ │ ├── json.hpp │ │ │ ├── value_future.hpp │ │ │ └── value_group.hpp │ │ ├── common │ │ │ ├── error_message.hpp │ │ │ ├── exception.hpp │ │ │ ├── future.hpp │ │ │ ├── iterator.hpp │ │ │ └── native.hpp │ │ ├── concept │ │ │ ├── concept.hpp │ │ │ ├── concept_manager.hpp │ │ │ ├── thing │ │ │ │ ├── attribute.hpp │ │ │ │ ├── entity.hpp │ │ │ │ ├── relation.hpp │ │ │ │ └── thing.hpp │ │ │ ├── type │ │ │ │ ├── attribute_type.hpp │ │ │ │ ├── entity_type.hpp │ │ │ │ ├── relation_type.hpp │ │ │ │ ├── role_type.hpp │ │ │ │ ├── thing_type.hpp │ │ │ │ └── type.hpp │ │ │ └── value │ │ │ │ └── value.hpp │ │ ├── connection │ │ │ ├── database_manager.hpp │ │ │ ├── driver.hpp │ │ │ ├── options.hpp │ │ │ ├── session.hpp │ │ │ └── transaction.hpp │ │ ├── database │ │ │ └── database.hpp │ │ ├── logic │ │ │ ├── explanation.hpp │ │ │ ├── logic_manager.hpp │ │ │ └── rule.hpp │ │ ├── query │ │ │ └── query_manager.hpp │ │ └── user │ │ │ ├── user.hpp │ │ │ └── user_manager.hpp │ └── typedb_driver.hpp ├── lib │ ├── answer │ │ ├── concept_map.cpp │ │ ├── concept_map_group.cpp │ │ ├── explainable.cpp │ │ ├── json.cpp │ │ ├── value_future.cpp │ │ └── value_group.cpp │ ├── common │ │ ├── error_message.cpp │ │ ├── exception.cpp │ │ ├── future.cpp │ │ ├── iterator.cpp │ │ ├── macros.hpp │ │ ├── native.hpp │ │ ├── utils.cpp │ │ └── utils.hpp │ ├── concept │ │ ├── concept.cpp │ │ ├── concept_factory.cpp │ │ ├── concept_factory.hpp │ │ ├── concept_manager.cpp │ │ ├── future.cpp │ │ ├── future.hpp │ │ ├── iterator.cpp │ │ ├── iterator.hpp │ │ ├── thing │ │ │ ├── attribute.cpp │ │ │ ├── entity.cpp │ │ │ ├── relation.cpp │ │ │ └── thing.cpp │ │ ├── type │ │ │ ├── attribute_type.cpp │ │ │ ├── entity_type.cpp │ │ │ ├── relation_type.cpp │ │ │ ├── role_type.cpp │ │ │ ├── thing_type.cpp │ │ │ └── type.cpp │ │ └── value │ │ │ └── value.cpp │ ├── connection │ │ ├── database_manager.cpp │ │ ├── driver.cpp │ │ ├── options.cpp │ │ ├── session.cpp │ │ └── transaction.cpp │ ├── database │ │ └── database.cpp │ ├── logic │ │ ├── explanation.cpp │ │ ├── logic_manager.cpp │ │ └── rule.cpp │ ├── query │ │ └── query_manager.cpp │ └── user │ │ ├── user.cpp │ │ └── user_manager.cpp └── test │ ├── assembly │ ├── BUILD │ ├── CMakeLists.txt │ └── test.cpp │ ├── behaviour │ ├── BUILD │ ├── concept │ │ ├── BUILD │ │ ├── rule │ │ │ └── BUILD │ │ ├── thing │ │ │ ├── BUILD │ │ │ ├── attribute │ │ │ │ └── BUILD │ │ │ ├── entity │ │ │ │ └── BUILD │ │ │ └── relation │ │ │ │ └── BUILD │ │ └── type │ │ │ ├── BUILD │ │ │ ├── attributetype │ │ │ └── BUILD │ │ │ ├── entitytype │ │ │ └── BUILD │ │ │ └── relationtype │ │ │ └── BUILD │ ├── connection │ │ ├── BUILD │ │ ├── database │ │ │ └── BUILD │ │ ├── session │ │ │ └── BUILD │ │ ├── transaction │ │ │ └── BUILD │ │ └── user │ │ │ └── BUILD │ ├── driver │ │ ├── BUILD │ │ └── query │ │ │ └── BUILD │ ├── query │ │ ├── BUILD │ │ └── language │ │ │ ├── define │ │ │ └── BUILD │ │ │ ├── delete │ │ │ └── BUILD │ │ │ ├── expression │ │ │ └── BUILD │ │ │ ├── fetch │ │ │ └── BUILD │ │ │ ├── get │ │ │ └── BUILD │ │ │ ├── insert │ │ │ └── BUILD │ │ │ ├── match │ │ │ └── BUILD │ │ │ ├── modifiers │ │ │ └── BUILD │ │ │ ├── undefine │ │ │ └── BUILD │ │ │ └── update │ │ │ └── BUILD │ ├── steps │ │ ├── BUILD │ │ ├── cloud_steps.cpp │ │ ├── common │ │ │ ├── common_steps.cpp │ │ │ ├── concept │ │ │ │ ├── attribute_steps.cpp │ │ │ │ ├── attributetype_steps.cpp │ │ │ │ ├── concept_utils.cpp │ │ │ │ ├── entity_steps.cpp │ │ │ │ ├── entitytype_steps.cpp │ │ │ │ ├── relation_steps.cpp │ │ │ │ ├── relationtype_steps.cpp │ │ │ │ ├── thingapi_steps.cpp │ │ │ │ └── thingtype_steps.cpp │ │ │ ├── concept_tables.cpp │ │ │ ├── connection_steps.cpp │ │ │ ├── database_steps.cpp │ │ │ ├── query_steps.cpp │ │ │ ├── session_steps.cpp │ │ │ ├── transaction_steps.cpp │ │ │ ├── user_steps.cpp │ │ │ ├── util_steps.cpp │ │ │ └── utils.cpp │ │ ├── core_steps.cpp │ │ ├── include │ │ │ ├── common.hpp │ │ │ ├── concept_tables.hpp │ │ │ ├── concept_utils.hpp │ │ │ ├── steps.hpp │ │ │ └── utils.hpp │ │ └── main.cpp │ └── tests.bzl │ ├── cucumber │ ├── BUILD │ ├── include │ │ └── cucumber_bdd │ │ │ ├── runner.hpp │ │ │ ├── step.hpp │ │ │ └── testrun.hpp │ ├── lib │ │ └── runner.cpp │ └── test │ │ ├── impl.cpp │ │ ├── impl.hpp │ │ ├── test.cpp │ │ └── test.feature │ └── integration │ ├── BUILD │ ├── test_cloud.cpp │ └── test_core.cpp ├── csharp ├── Api │ ├── Answer │ │ ├── IConceptMap.cs │ │ ├── IConceptMapGroup.cs │ │ └── IValueGroup.cs │ ├── BUILD │ ├── Concept │ │ ├── IConcept.cs │ │ ├── IConceptManager.cs │ │ ├── Thing │ │ │ ├── IAttribute.cs │ │ │ ├── IEntity.cs │ │ │ ├── IRelation.cs │ │ │ └── IThing.cs │ │ ├── Type │ │ │ ├── IAttributeType.cs │ │ │ ├── IEntityType.cs │ │ │ ├── IRelationType.cs │ │ │ ├── IRoleType.cs │ │ │ ├── IThingType.cs │ │ │ └── IType.cs │ │ └── Value │ │ │ └── IValue.cs │ ├── Database │ │ ├── IDatabase.cs │ │ └── IDatabaseManager.cs │ ├── ITypeDBDriver.cs │ ├── ITypeDBSession.cs │ ├── ITypeDBTransaction.cs │ ├── Logic │ │ ├── IExplanation.cs │ │ ├── ILogicManager.cs │ │ └── IRule.cs │ ├── Query │ │ └── IQueryManager.cs │ ├── TypeDBCredential.cs │ ├── TypeDBOptions.cs │ └── User │ │ ├── IUser.cs │ │ └── IUserManager.cs ├── BUILD ├── Common │ ├── BUILD │ ├── Exception │ │ ├── ErrorMessage.cs │ │ ├── TypeDBDriverException.cs │ │ └── TypeDBException.cs │ ├── Label.cs │ ├── NativeEnumerable.cs │ ├── NativeObjectWrapper.cs │ ├── Promise │ │ ├── Promise.cs │ │ └── VoidPromise.cs │ └── Validation │ │ └── Validator.cs ├── Concept │ ├── Answer │ │ ├── ConceptMap.cs │ │ ├── ConceptMapGroup.cs │ │ └── ValueGroup.cs │ ├── BUILD │ ├── Concept.cs │ ├── ConceptManager.cs │ ├── Thing │ │ ├── Attribute.cs │ │ ├── Entity.cs │ │ ├── Relation.cs │ │ └── Thing.cs │ ├── Type │ │ ├── AttributeType.cs │ │ ├── EntityType.cs │ │ ├── RelationType.cs │ │ ├── RoleType.cs │ │ ├── ThingType.cs │ │ └── Type.cs │ └── Value │ │ └── Value.cs ├── Connection │ ├── BUILD │ ├── TypeDBDatabase.cs │ ├── TypeDBDatabaseManager.cs │ ├── TypeDBDriver.cs │ ├── TypeDBSession.cs │ └── TypeDBTransaction.cs ├── Drivers.cs ├── Logic │ ├── BUILD │ ├── Explanation.cs │ ├── LogicManager.cs │ └── Rule.cs ├── Query │ ├── BUILD │ └── QueryManager.cs ├── README.md ├── Test │ ├── BUILD │ ├── Behaviour │ │ ├── BUILD │ │ ├── Concept │ │ │ ├── BUILD │ │ │ ├── Thing │ │ │ │ ├── Attribute │ │ │ │ │ ├── AttributeSteps.cs │ │ │ │ │ ├── AttributeTest.cs │ │ │ │ │ └── BUILD │ │ │ │ ├── BUILD │ │ │ │ ├── Entity │ │ │ │ │ ├── BUILD │ │ │ │ │ ├── EntitySteps.cs │ │ │ │ │ └── EntityTest.cs │ │ │ │ ├── Relation │ │ │ │ │ ├── BUILD │ │ │ │ │ ├── RelationSteps.cs │ │ │ │ │ └── RelationTest.cs │ │ │ │ └── ThingSteps.cs │ │ │ └── Type │ │ │ │ ├── AttributeType │ │ │ │ ├── AttributeTypeSteps.cs │ │ │ │ ├── AttributeTypeTest.cs │ │ │ │ └── BUILD │ │ │ │ ├── EntityType │ │ │ │ ├── BUILD │ │ │ │ └── EntityTypeTest.cs │ │ │ │ ├── RelationType │ │ │ │ ├── BUILD │ │ │ │ ├── RelationTypeSteps.cs │ │ │ │ └── RelationTypeTest.cs │ │ │ │ └── ThingType │ │ │ │ ├── BUILD │ │ │ │ └── ThingTypeSteps.cs │ │ ├── Connection │ │ │ ├── BUILD │ │ │ ├── ConnectionStepsBase.cs │ │ │ ├── ConnectionStepsCloud.cs │ │ │ ├── ConnectionStepsCore.cs │ │ │ ├── Database │ │ │ │ ├── BUILD │ │ │ │ ├── DatabaseSteps.cs │ │ │ │ └── DatabaseTest.cs │ │ │ ├── Session │ │ │ │ ├── BUILD │ │ │ │ ├── SessionSteps.cs │ │ │ │ └── SessionTest.cs │ │ │ ├── Transaction │ │ │ │ ├── BUILD │ │ │ │ ├── TransactionSteps.cs │ │ │ │ └── TransactionTest.cs │ │ │ └── User │ │ │ │ ├── BUILD │ │ │ │ ├── UserSteps.cs │ │ │ │ └── UserTest.cs │ │ ├── Driver │ │ │ ├── BUILD │ │ │ └── Query │ │ │ │ ├── BUILD │ │ │ │ └── QueryTest.cs │ │ ├── Query │ │ │ ├── BUILD │ │ │ ├── Language │ │ │ │ ├── Define │ │ │ │ │ ├── BUILD │ │ │ │ │ └── DefineTest.cs │ │ │ │ ├── Delete │ │ │ │ │ ├── BUILD │ │ │ │ │ └── DeleteTest.cs │ │ │ │ ├── Expression │ │ │ │ │ ├── BUILD │ │ │ │ │ └── ExpressionTest.cs │ │ │ │ ├── Fetch │ │ │ │ │ ├── BUILD │ │ │ │ │ └── FetchTest.cs │ │ │ │ ├── Get │ │ │ │ │ ├── BUILD │ │ │ │ │ └── GetTest.cs │ │ │ │ ├── Insert │ │ │ │ │ ├── BUILD │ │ │ │ │ └── InsertTest.cs │ │ │ │ ├── Match │ │ │ │ │ ├── BUILD │ │ │ │ │ └── MatchTest.cs │ │ │ │ ├── Modifiers │ │ │ │ │ ├── BUILD │ │ │ │ │ └── ModifiersTest.cs │ │ │ │ ├── RuleValidation │ │ │ │ │ ├── BUILD │ │ │ │ │ └── RuleValidationTest.cs │ │ │ │ ├── Undefine │ │ │ │ │ ├── BUILD │ │ │ │ │ └── UndefineTest.cs │ │ │ │ └── Update │ │ │ │ │ ├── BUILD │ │ │ │ │ └── UpdateTest.cs │ │ │ ├── QuerySteps.cs │ │ │ └── Reasoner │ │ │ │ ├── AttributeAttachment │ │ │ │ ├── AttributeAttachmentTest.cs │ │ │ │ └── BUILD │ │ │ │ ├── BUILD │ │ │ │ ├── CompoundQueries │ │ │ │ ├── BUILD │ │ │ │ └── CompoundQueriesTest.cs │ │ │ │ ├── ConceptInequality │ │ │ │ ├── BUILD │ │ │ │ └── ConceptInequalityTest.cs │ │ │ │ ├── Negation │ │ │ │ ├── BUILD │ │ │ │ └── NegationTest.cs │ │ │ │ ├── ReasonerSteps.cs │ │ │ │ ├── Recursion │ │ │ │ ├── BUILD │ │ │ │ └── RecursionTest.cs │ │ │ │ ├── RelationInference │ │ │ │ ├── BUILD │ │ │ │ └── RelationInferenceTest.cs │ │ │ │ ├── RuleInteraction │ │ │ │ ├── BUILD │ │ │ │ └── RuleInteractionTest.cs │ │ │ │ ├── SchemaQueries │ │ │ │ ├── BUILD │ │ │ │ └── SchemaQueriesTest.cs │ │ │ │ ├── TypeHierarchy │ │ │ │ ├── BUILD │ │ │ │ └── TypeHierarchyTest.cs │ │ │ │ ├── ValuePredicate │ │ │ │ ├── BUILD │ │ │ │ └── ValuePredicateTest.cs │ │ │ │ └── VariableRoles │ │ │ │ ├── BUILD │ │ │ │ └── VariableRolesTest.cs │ │ └── Util │ │ │ ├── BUILD │ │ │ ├── BehaviourTestException.cs │ │ │ ├── TestRunner.cs │ │ │ ├── Util.cs │ │ │ └── UtilSteps.cs │ ├── Deployment │ │ ├── BUILD │ │ ├── NugetApplicationTest.cs │ │ └── NugetApplicationTest.csproj │ ├── Integration │ │ ├── BUILD │ │ ├── Data │ │ │ ├── BUILD │ │ │ └── DataTest.cs │ │ ├── Examples │ │ │ ├── BUILD │ │ │ ├── CloudExamplesTest.cs │ │ │ └── CoreExamplesTest.cs │ │ ├── Marshal │ │ │ ├── BUILD │ │ │ └── MarshalTest.cs │ │ └── Network │ │ │ ├── AddressTranslationTest.cs │ │ │ └── BUILD │ ├── build_opts.bzl │ └── rules.bzl ├── TypeDB.Driver.Pinvoke.nuspec ├── TypeDB.Driver.nuspec ├── User │ ├── BUILD │ ├── User.cs │ └── UserManager.cs ├── build_opts.bzl ├── docs_structure.bzl ├── nuget │ ├── BUILD │ ├── paket.csharp_deps.bzl │ ├── paket.csharp_deps_extension.bzl │ ├── paket.dependencies │ ├── paket.lock │ └── update.sh └── rules.bzl ├── dependencies ├── maven │ ├── BUILD │ ├── artifacts.bzl │ ├── artifacts.snapshot │ └── update.sh └── typedb │ ├── BUILD │ ├── artifacts.bzl │ └── repositories.bzl ├── docs ├── antora.yml ├── deps.sh ├── modules │ └── ROOT │ │ └── partials │ │ ├── c │ │ ├── answer │ │ │ ├── conceptmap.adoc │ │ │ ├── explanation.adoc │ │ │ ├── primitives.adoc │ │ │ └── valuegroup.adoc │ │ ├── api-reference.adoc │ │ ├── concept │ │ │ ├── attribute.adoc │ │ │ ├── concept.adoc │ │ │ ├── entity.adoc │ │ │ ├── relation.adoc │ │ │ ├── roleplayer.adoc │ │ │ ├── thing.adoc │ │ │ └── value.adoc │ │ ├── connection │ │ │ ├── connection.adoc │ │ │ ├── credential.adoc │ │ │ ├── database.adoc │ │ │ ├── replica.adoc │ │ │ └── user.adoc │ │ ├── errors │ │ │ ├── error.adoc │ │ │ └── schemaexception.adoc │ │ ├── logic │ │ │ ├── logic.adoc │ │ │ └── rule.adoc │ │ ├── schema │ │ │ ├── annotation.adoc │ │ │ ├── attributetype.adoc │ │ │ ├── entitytype.adoc │ │ │ ├── relationtype.adoc │ │ │ ├── roletype.adoc │ │ │ ├── transitivity.adoc │ │ │ └── valuetype.adoc │ │ ├── session │ │ │ ├── options.adoc │ │ │ └── session.adoc │ │ └── transaction │ │ │ ├── query.adoc │ │ │ └── transaction.adoc │ │ ├── cpp │ │ ├── answer │ │ │ ├── ConceptMap.adoc │ │ │ ├── ConceptMapGroup.adoc │ │ │ ├── Explainable.adoc │ │ │ ├── Explainables.adoc │ │ │ ├── Explanation.adoc │ │ │ ├── Future.adoc │ │ │ ├── Iterable.adoc │ │ │ ├── Iterator.adoc │ │ │ ├── JSON.adoc │ │ │ ├── JSONType.adoc │ │ │ ├── OwnerAttributePair.adoc │ │ │ ├── ValueGroup.adoc │ │ │ └── typedefs.adoc │ │ ├── api-reference.adoc │ │ ├── concept │ │ │ ├── Concept.adoc │ │ │ ├── ConceptManager.adoc │ │ │ ├── ConceptType.adoc │ │ │ └── Transitivity.adoc │ │ ├── connection │ │ │ ├── Database.adoc │ │ │ ├── DatabaseManager.adoc │ │ │ ├── Driver.adoc │ │ │ ├── ReplicaInfo.adoc │ │ │ ├── User.adoc │ │ │ └── UserManager.adoc │ │ ├── data │ │ │ ├── Attribute.adoc │ │ │ ├── Entity.adoc │ │ │ ├── Relation.adoc │ │ │ ├── Thing.adoc │ │ │ └── Value.adoc │ │ ├── errors │ │ │ └── DriverException.adoc │ │ ├── logic │ │ │ ├── LogicManager.adoc │ │ │ └── Rule.adoc │ │ ├── schema │ │ │ ├── Annotation.adoc │ │ │ ├── AttributeType.adoc │ │ │ ├── EntityType.adoc │ │ │ ├── RelationType.adoc │ │ │ ├── RoleType.adoc │ │ │ ├── ThingType.adoc │ │ │ ├── Type.adoc │ │ │ └── ValueType.adoc │ │ ├── session │ │ │ ├── Options.adoc │ │ │ ├── Session.adoc │ │ │ └── SessionType.adoc │ │ └── transaction │ │ │ ├── QueryManager.adoc │ │ │ ├── Transaction.adoc │ │ │ └── TransactionType.adoc │ │ ├── csharp │ │ ├── answer │ │ │ ├── IConceptMap.adoc │ │ │ ├── IConceptMapGroup.adoc │ │ │ ├── IExplainable.adoc │ │ │ ├── IExplainables.adoc │ │ │ ├── IExplanation.adoc │ │ │ ├── IValueGroup.adoc │ │ │ ├── Promise__T__.adoc │ │ │ └── VoidPromise.adoc │ │ ├── api-reference.adoc │ │ ├── concept │ │ │ ├── IConcept.adoc │ │ │ ├── IConceptManager.adoc │ │ │ └── Transitivity.adoc │ │ ├── connection │ │ │ ├── Drivers.adoc │ │ │ ├── IDatabase.adoc │ │ │ ├── IDatabaseManager.adoc │ │ │ ├── IReplica.adoc │ │ │ ├── ITypeDBDriver.adoc │ │ │ ├── IUser.adoc │ │ │ ├── IUserManager.adoc │ │ │ └── TypeDBCredential.adoc │ │ ├── data │ │ │ ├── IAttribute.adoc │ │ │ ├── IEntity.adoc │ │ │ ├── IRelation.adoc │ │ │ ├── IThing.adoc │ │ │ ├── IValue.adoc │ │ │ ├── ValueType.adoc │ │ │ └── ValueTypeExtensions.adoc │ │ ├── errors │ │ │ └── TypeDBDriverException.adoc │ │ ├── logic │ │ │ ├── ILogicManager.adoc │ │ │ └── IRule.adoc │ │ ├── schema │ │ │ ├── Annotation.adoc │ │ │ ├── IAttributeType.adoc │ │ │ ├── IEntityType.adoc │ │ │ ├── IRelationType.adoc │ │ │ ├── IRoleType.adoc │ │ │ ├── IThingType.adoc │ │ │ ├── IType.adoc │ │ │ └── Label.adoc │ │ ├── session │ │ │ ├── ITypeDBSession.adoc │ │ │ ├── SessionType.adoc │ │ │ └── TypeDBOptions.adoc │ │ └── transaction │ │ │ ├── IQueryManager.adoc │ │ │ ├── ITypeDBTransaction.adoc │ │ │ └── TransactionType.adoc │ │ ├── java │ │ ├── answer │ │ │ ├── ConceptDocumentIterator.adoc │ │ │ ├── ConceptRow.adoc │ │ │ ├── ConceptRowIterator.adoc │ │ │ ├── JSON.adoc │ │ │ ├── OkQueryAnswer.adoc │ │ │ ├── Promise_T_.adoc │ │ │ ├── QueryAnswer.adoc │ │ │ └── QueryType.adoc │ │ ├── api-reference.adoc │ │ ├── concept │ │ │ └── Concept.adoc │ │ ├── connection │ │ │ ├── Credentials.adoc │ │ │ ├── Database.adoc │ │ │ ├── DatabaseManager.adoc │ │ │ ├── Driver.adoc │ │ │ ├── DriverOptions.adoc │ │ │ ├── TypeDB.adoc │ │ │ ├── User.adoc │ │ │ └── UserManager.adoc │ │ ├── data │ │ │ ├── Attribute.adoc │ │ │ ├── Entity.adoc │ │ │ ├── Instance.adoc │ │ │ ├── Relation.adoc │ │ │ └── Value.adoc │ │ ├── errors │ │ │ └── TypeDBDriverException.adoc │ │ ├── schema │ │ │ ├── AttributeType.adoc │ │ │ ├── EntityType.adoc │ │ │ ├── RelationType.adoc │ │ │ ├── RoleType.adoc │ │ │ └── Type.adoc │ │ ├── transaction │ │ │ ├── QueryOptions.adoc │ │ │ ├── Transaction.Type.adoc │ │ │ ├── Transaction.adoc │ │ │ └── TransactionOptions.adoc │ │ └── value │ │ │ └── Duration.adoc │ │ ├── nodejs │ │ ├── answer │ │ │ ├── ConceptMap.adoc │ │ │ ├── ConceptMapGroup.adoc │ │ │ ├── Explainable.adoc │ │ │ ├── Explainables.adoc │ │ │ ├── Explanation.adoc │ │ │ ├── Stream_T_.adoc │ │ │ └── ValueGroup.adoc │ │ ├── api-reference.adoc │ │ ├── concept │ │ │ ├── Concept.adoc │ │ │ └── ConceptManager.adoc │ │ ├── connection │ │ │ ├── Database.adoc │ │ │ ├── DatabaseManager.adoc │ │ │ ├── Replica.adoc │ │ │ ├── TypeDB.adoc │ │ │ ├── TypeDBCredential.adoc │ │ │ ├── TypeDBDriver.adoc │ │ │ ├── User.adoc │ │ │ └── UserManager.adoc │ │ ├── data │ │ │ ├── Attribute.adoc │ │ │ ├── Entity.adoc │ │ │ ├── Relation.adoc │ │ │ ├── Thing.adoc │ │ │ └── Value.adoc │ │ ├── errors │ │ │ ├── ErrorMessage.adoc │ │ │ └── TypeDBDriverError.adoc │ │ ├── logic │ │ │ ├── LogicManager.adoc │ │ │ └── Rule.adoc │ │ ├── schema │ │ │ ├── Annotation.adoc │ │ │ ├── AttributeType.adoc │ │ │ ├── EntityType.adoc │ │ │ ├── Label.adoc │ │ │ ├── RelationType.adoc │ │ │ ├── RoleType.adoc │ │ │ ├── ThingType.adoc │ │ │ ├── Transitivity.adoc │ │ │ ├── Type.adoc │ │ │ └── ValueType.adoc │ │ ├── session │ │ │ ├── Opts.adoc │ │ │ ├── SessionType.adoc │ │ │ ├── TypeDBOptions.adoc │ │ │ └── TypeDBSession.adoc │ │ └── transaction │ │ │ ├── QueryManager.adoc │ │ │ ├── TransactionType.adoc │ │ │ └── TypeDBTransaction.adoc │ │ ├── python │ │ ├── answer │ │ │ ├── ConceptDocumentIterator.adoc │ │ │ ├── ConceptRow.adoc │ │ │ ├── ConceptRowIterator.adoc │ │ │ ├── OkQueryAnswer.adoc │ │ │ ├── Promise.adoc │ │ │ ├── QueryAnswer.adoc │ │ │ └── QueryType.adoc │ │ ├── api-reference.adoc │ │ ├── concept │ │ │ └── Concept.adoc │ │ ├── connection │ │ │ ├── Credentials.adoc │ │ │ ├── Database.adoc │ │ │ ├── DatabaseManager.adoc │ │ │ ├── Driver.adoc │ │ │ ├── DriverOptions.adoc │ │ │ ├── TypeDB.adoc │ │ │ ├── User.adoc │ │ │ └── UserManager.adoc │ │ ├── data │ │ │ ├── Attribute.adoc │ │ │ ├── Entity.adoc │ │ │ ├── Instance.adoc │ │ │ ├── Relation.adoc │ │ │ └── Value.adoc │ │ ├── errors │ │ │ └── TypeDBDriverException.adoc │ │ ├── schema │ │ │ ├── AttributeType.adoc │ │ │ ├── EntityType.adoc │ │ │ ├── RelationType.adoc │ │ │ ├── RoleType.adoc │ │ │ └── Type.adoc │ │ ├── transaction │ │ │ ├── QueryOptions.adoc │ │ │ ├── Transaction.adoc │ │ │ ├── TransactionOptions.adoc │ │ │ └── TransactionType.adoc │ │ └── value │ │ │ ├── Datetime.adoc │ │ │ └── Duration.adoc │ │ └── rust │ │ ├── answer │ │ ├── ConceptDocument.adoc │ │ ├── ConceptDocumentHeader.adoc │ │ ├── ConceptRow.adoc │ │ ├── ConceptRowHeader.adoc │ │ ├── JSON.adoc │ │ ├── Leaf.adoc │ │ ├── Node.adoc │ │ ├── QueryAnswer.adoc │ │ ├── QueryType.adoc │ │ └── Trait_Promise.adoc │ │ ├── api-reference.adoc │ │ ├── concept │ │ ├── Concept.adoc │ │ ├── ConceptCategory.adoc │ │ └── Kind.adoc │ │ ├── connection │ │ ├── Credentials.adoc │ │ ├── Database.adoc │ │ ├── DatabaseManager.adoc │ │ ├── DriverOptions.adoc │ │ ├── ReplicaInfo.adoc │ │ ├── TypeDBDriver.adoc │ │ ├── User.adoc │ │ └── UserManager.adoc │ │ ├── data │ │ ├── Attribute.adoc │ │ ├── Entity.adoc │ │ ├── Relation.adoc │ │ └── Value.adoc │ │ ├── errors │ │ ├── ConceptError.adoc │ │ ├── ConnectionError.adoc │ │ ├── DurationParseError.adoc │ │ ├── Error.adoc │ │ ├── InternalError.adoc │ │ └── ServerError.adoc │ │ ├── schema │ │ ├── AttributeType.adoc │ │ ├── EntityType.adoc │ │ ├── RelationType.adoc │ │ ├── RoleType.adoc │ │ └── ValueType.adoc │ │ ├── transaction │ │ ├── QueryOptions.adoc │ │ ├── Transaction.adoc │ │ ├── TransactionOptions.adoc │ │ └── TransactionType.adoc │ │ └── value │ │ ├── Decimal.adoc │ │ ├── Duration.adoc │ │ ├── Offset.adoc │ │ ├── Struct.adoc │ │ └── TimeZone.adoc ├── package-structure.dot └── package-structure.png ├── go ├── BUILD ├── README.md ├── api │ ├── BUILD │ ├── TypeDBDriver.go │ ├── database │ │ ├── BUILD │ │ ├── Database.go │ │ └── DatabaseManager.go │ └── user │ │ ├── BUILD │ │ ├── User.go │ │ └── UserManager.go ├── connection │ ├── BUILD │ ├── TypeDBDatabaseImpl.go │ ├── TypeDBDatabaseManagerImpl.go │ └── TypeDBDriverImpl.go ├── deps.bzl ├── driver_proof_of_concept.go ├── gazelle │ ├── BUILD │ └── add_dep.sh ├── go.mod ├── go_versions.bzl ├── rules.bzl ├── test │ └── integration │ │ ├── BUILD │ │ └── db_connection_test.go └── user │ ├── BUILD │ ├── UserImpl.go │ └── UserManagerImpl.go ├── java ├── BUILD ├── README.md ├── TypeDB.java ├── TypeDBExample.java ├── api │ ├── BUILD │ ├── Credentials.java │ ├── Driver.java │ ├── DriverOptions.java │ ├── QueryOptions.java │ ├── QueryType.java │ ├── Transaction.java │ ├── TransactionOptions.java │ ├── answer │ │ ├── ConceptDocumentIterator.java │ │ ├── ConceptRow.java │ │ ├── ConceptRowIterator.java │ │ ├── JSON.java │ │ ├── OkQueryAnswer.java │ │ └── QueryAnswer.java │ ├── concept │ │ ├── Concept.java │ │ ├── instance │ │ │ ├── Attribute.java │ │ │ ├── Entity.java │ │ │ ├── Instance.java │ │ │ └── Relation.java │ │ ├── type │ │ │ ├── AttributeType.java │ │ │ ├── EntityType.java │ │ │ ├── RelationType.java │ │ │ ├── RoleType.java │ │ │ └── Type.java │ │ └── value │ │ │ └── Value.java │ ├── database │ │ ├── Database.java │ │ └── DatabaseManager.java │ └── user │ │ ├── User.java │ │ └── UserManager.java ├── common │ ├── BUILD │ ├── Duration.java │ ├── Loader.java │ ├── NativeIterator.java │ ├── NativeObject.java │ ├── Promise.java │ ├── Validator.java │ ├── collection │ │ ├── Collections.java │ │ ├── Pair.java │ │ └── Triple.java │ ├── exception │ │ ├── ErrorMessage.java │ │ └── TypeDBDriverException.java │ └── util │ │ ├── Double.java │ │ └── Objects.java ├── concept │ ├── BUILD │ ├── ConceptImpl.java │ ├── answer │ │ ├── ConceptDocumentIteratorImpl.java │ │ ├── ConceptRowImpl.java │ │ ├── ConceptRowIteratorImpl.java │ │ ├── OkQueryAnswerImpl.java │ │ └── QueryAnswerImpl.java │ ├── instance │ │ ├── AttributeImpl.java │ │ ├── EntityImpl.java │ │ ├── InstanceImpl.java │ │ └── RelationImpl.java │ ├── type │ │ ├── AttributeTypeImpl.java │ │ ├── EntityTypeImpl.java │ │ ├── RelationTypeImpl.java │ │ ├── RoleTypeImpl.java │ │ └── TypeImpl.java │ └── value │ │ └── ValueImpl.java ├── connection │ ├── BUILD │ ├── DatabaseImpl.java │ ├── DatabaseManagerImpl.java │ ├── DriverImpl.java │ └── TransactionImpl.java ├── docs_structure.bzl ├── rules.bzl ├── test │ ├── BUILD │ ├── behaviour │ │ ├── BUILD │ │ ├── BehaviourTest.java │ │ ├── config │ │ │ ├── BUILD │ │ │ └── Parameters.java │ │ ├── connection │ │ │ ├── BUILD │ │ │ ├── ConnectionStepsBase.java │ │ │ ├── ConnectionStepsCluster.java │ │ │ ├── ConnectionStepsCommunity.java │ │ │ ├── database │ │ │ │ ├── BUILD │ │ │ │ ├── DatabaseSteps.java │ │ │ │ └── DatabaseTest.java │ │ │ ├── transaction │ │ │ │ ├── BUILD │ │ │ │ ├── TransactionSteps.java │ │ │ │ └── TransactionTest.java │ │ │ └── user │ │ │ │ ├── BUILD │ │ │ │ └── UserSteps.java │ │ ├── debug │ │ │ ├── BUILD │ │ │ ├── DebugTest.java │ │ │ └── debug.feature │ │ ├── driver │ │ │ ├── BUILD │ │ │ ├── driver │ │ │ │ ├── BUILD │ │ │ │ └── DriverTest.java │ │ │ └── user │ │ │ │ ├── BUILD │ │ │ │ └── UserTest.java │ │ ├── query │ │ │ ├── BUILD │ │ │ └── QuerySteps.java │ │ ├── rules.bzl │ │ └── util │ │ │ ├── BUILD │ │ │ ├── Util.java │ │ │ └── UtilSteps.java │ ├── deployment │ │ ├── pom.xml │ │ └── src │ │ │ └── test │ │ │ ├── java │ │ │ └── application │ │ │ │ └── MavenApplicationTest.java │ │ │ └── resources │ │ │ └── logback-test.xml │ └── integration │ │ ├── BUILD │ │ ├── ExampleTest.java │ │ ├── ValueTest.java │ │ └── cluster │ │ └── BUILD └── user │ ├── BUILD │ ├── UserImpl.java │ └── UserManagerImpl.java ├── nodejs ├── .eslintignore ├── .eslintrc ├── BUILD ├── README.md ├── TypeDB.ts ├── api │ ├── answer │ │ ├── ConceptMap.ts │ │ ├── ConceptMapGroup.ts │ │ ├── JSON.ts │ │ └── ValueGroup.ts │ ├── concept │ │ ├── Concept.ts │ │ ├── ConceptManager.ts │ │ ├── thing │ │ │ ├── Attribute.ts │ │ │ ├── Entity.ts │ │ │ ├── Relation.ts │ │ │ └── Thing.ts │ │ ├── type │ │ │ ├── AttributeType.ts │ │ │ ├── EntityType.ts │ │ │ ├── RelationType.ts │ │ │ ├── RoleType.ts │ │ │ ├── ThingType.ts │ │ │ └── Type.ts │ │ └── value │ │ │ └── Value.ts │ ├── connection │ │ ├── TypeDBCredential.ts │ │ ├── TypeDBDriver.ts │ │ ├── TypeDBOptions.ts │ │ ├── TypeDBSession.ts │ │ ├── TypeDBTransaction.ts │ │ ├── database │ │ │ ├── Database.ts │ │ │ └── DatabaseManager.ts │ │ └── user │ │ │ ├── User.ts │ │ │ └── UserManager.ts │ ├── logic │ │ ├── Explanation.ts │ │ ├── LogicManager.ts │ │ └── Rule.ts │ └── query │ │ └── QueryManager.ts ├── common │ ├── Label.ts │ ├── errors │ │ ├── ErrorMessage.ts │ │ └── TypeDBDriverError.ts │ ├── rpc │ │ ├── RequestBuilder.ts │ │ ├── ResponseReader.ts │ │ └── TypeDBStub.ts │ └── util │ │ ├── BlockingQueue.ts │ │ ├── Bytes.ts │ │ └── Stream.ts ├── concept │ ├── ConceptImpl.ts │ ├── ConceptManagerImpl.ts │ ├── answer │ │ ├── ConceptMapGroupImpl.ts │ │ ├── ConceptMapImpl.ts │ │ ├── ReadableConceptTreeImpl.ts │ │ └── ValueGroupImpl.ts │ ├── thing │ │ ├── AttributeImpl.ts │ │ ├── EntityImpl.ts │ │ ├── RelationImpl.ts │ │ └── ThingImpl.ts │ ├── type │ │ ├── AttributeTypeImpl.ts │ │ ├── EntityTypeImpl.ts │ │ ├── RelationTypeImpl.ts │ │ ├── RoleTypeImpl.ts │ │ ├── ThingTypeImpl.ts │ │ └── TypeImpl.ts │ └── value │ │ └── ValueImpl.ts ├── connection │ ├── TypeDBDatabaseImpl.ts │ ├── TypeDBDatabaseManagerImpl.ts │ ├── TypeDBDriverImpl.ts │ ├── TypeDBSessionImpl.ts │ ├── TypeDBStubImpl.ts │ └── TypeDBTransactionImpl.ts ├── dependencies_internal.ts ├── docs_structure.bzl ├── index.ts ├── logic │ ├── ExplanationImpl.ts │ ├── LogicManagerImpl.ts │ └── RuleImpl.ts ├── package.json ├── pnpm-lock.yaml ├── query │ └── QueryManagerImpl.ts ├── stream │ ├── BidirectionalStream.ts │ ├── RequestTransmitter.ts │ ├── ResponseCollector.ts │ └── ResponsePartIterator.ts ├── test │ ├── BUILD │ ├── behaviour │ │ ├── BUILD │ │ ├── README.md │ │ ├── concept │ │ │ ├── thing │ │ │ │ ├── BUILD │ │ │ │ ├── ThingSteps.ts │ │ │ │ ├── attribute │ │ │ │ │ ├── AttributeSteps.ts │ │ │ │ │ └── BUILD │ │ │ │ ├── entity │ │ │ │ │ ├── BUILD │ │ │ │ │ └── EntitySteps.ts │ │ │ │ └── relation │ │ │ │ │ ├── BUILD │ │ │ │ │ └── RelationSteps.ts │ │ │ └── type │ │ │ │ ├── BUILD │ │ │ │ ├── attributetype │ │ │ │ ├── AttributeTypeSteps.ts │ │ │ │ └── BUILD │ │ │ │ ├── entitytype │ │ │ │ └── BUILD │ │ │ │ ├── relationtype │ │ │ │ ├── BUILD │ │ │ │ └── RelationTypeSteps.ts │ │ │ │ └── thingtype │ │ │ │ ├── BUILD │ │ │ │ └── ThingTypeSteps.ts │ │ ├── config │ │ │ ├── BUILD │ │ │ └── Parameters.ts │ │ ├── connection │ │ │ ├── BUILD │ │ │ ├── ConnectionStepsBase.ts │ │ │ ├── ConnectionStepsCloud.ts │ │ │ ├── ConnectionStepsCore.ts │ │ │ ├── database │ │ │ │ ├── BUILD │ │ │ │ └── DatabaseSteps.ts │ │ │ ├── session │ │ │ │ ├── BUILD │ │ │ │ └── SessionSteps.ts │ │ │ ├── transaction │ │ │ │ ├── BUILD │ │ │ │ └── TransactionSteps.ts │ │ │ └── user │ │ │ │ ├── BUILD │ │ │ │ └── UserSteps.ts │ │ ├── driver │ │ │ ├── BUILD │ │ │ └── query │ │ │ │ └── BUILD │ │ ├── query │ │ │ ├── BUILD │ │ │ ├── QuerySteps.ts │ │ │ └── language │ │ │ │ ├── define │ │ │ │ └── BUILD │ │ │ │ ├── delete │ │ │ │ └── BUILD │ │ │ │ ├── expression │ │ │ │ └── BUILD │ │ │ │ ├── fetch │ │ │ │ └── BUILD │ │ │ │ ├── get │ │ │ │ └── BUILD │ │ │ │ ├── insert │ │ │ │ └── BUILD │ │ │ │ ├── match │ │ │ │ └── BUILD │ │ │ │ ├── modifiers │ │ │ │ └── BUILD │ │ │ │ ├── undefine │ │ │ │ └── BUILD │ │ │ │ └── update │ │ │ │ └── BUILD │ │ ├── rules.bzl │ │ └── util │ │ │ ├── BUILD │ │ │ ├── Util.ts │ │ │ └── UtilSteps.ts │ ├── deployment │ │ ├── application.test.js │ │ └── package.json │ ├── integration │ │ ├── README.md │ │ ├── test-cloud-failover.js │ │ ├── test-concept.js │ │ ├── test-connection-cloud.js │ │ ├── test-connection-core.js │ │ └── test-query.js │ └── tsconfig.json ├── tool │ └── typedoc │ │ ├── TypeDocRunner.ts │ │ ├── rules.bzl │ │ ├── tsconfig.json │ │ └── typedoc.json ├── tsconfig.json └── user │ ├── UserImpl.ts │ └── UserManagerImpl.ts ├── python ├── BUILD ├── README.md ├── conf.py ├── docs_structure.bzl ├── example.py ├── index.rst ├── python_versions.bzl ├── requirements.txt ├── requirements_dev.txt ├── rules.bzl ├── tests │ ├── BUILD │ ├── behaviour │ │ ├── BUILD │ │ ├── background │ │ │ ├── BUILD │ │ │ ├── cluster │ │ │ │ └── environment.py │ │ │ ├── community │ │ │ │ └── environment.py │ │ │ └── environment_base.py │ │ ├── behave_rule.bzl │ │ ├── config │ │ │ ├── BUILD │ │ │ └── parameters.py │ │ ├── connection │ │ │ ├── BUILD │ │ │ ├── connection_steps.py │ │ │ ├── database │ │ │ │ ├── BUILD │ │ │ │ └── database_steps.py │ │ │ ├── transaction │ │ │ │ ├── BUILD │ │ │ │ └── transaction_steps.py │ │ │ └── user │ │ │ │ ├── BUILD │ │ │ │ └── user_steps.py │ │ ├── context.py │ │ ├── driver │ │ │ ├── BUILD │ │ │ ├── driver │ │ │ │ └── BUILD │ │ │ └── user │ │ │ │ └── BUILD │ │ ├── entry_point_behave.py │ │ ├── query │ │ │ ├── BUILD │ │ │ └── query_steps.py │ │ └── util │ │ │ ├── BUILD │ │ │ ├── util.py │ │ │ └── util_steps.py │ ├── deployment │ │ ├── requirements.txt │ │ └── test.py │ └── integration │ │ ├── BUILD │ │ ├── cluster │ │ ├── BUILD │ │ ├── cluster_test_rule.bzl │ │ └── test_failover.py │ │ ├── test_debug.py │ │ ├── test_example.py │ │ └── test_values.py └── typedb │ ├── api │ ├── answer │ │ ├── concept_document_iterator.py │ │ ├── concept_row.py │ │ ├── concept_row_iterator.py │ │ ├── ok_query_answer.py │ │ ├── query_answer.py │ │ └── query_type.py │ ├── concept │ │ ├── concept.py │ │ ├── instance │ │ │ ├── attribute.py │ │ │ ├── entity.py │ │ │ ├── instance.py │ │ │ └── relation.py │ │ ├── type │ │ │ ├── attribute_type.py │ │ │ ├── entity_type.py │ │ │ ├── relation_type.py │ │ │ ├── role_type.py │ │ │ └── type.py │ │ └── value │ │ │ └── value.py │ ├── connection │ │ ├── credentials.py │ │ ├── database.py │ │ ├── driver.py │ │ ├── driver_options.py │ │ ├── query_options.py │ │ ├── transaction.py │ │ └── transaction_options.py │ └── user │ │ └── user.py │ ├── common │ ├── datetime.py │ ├── duration.py │ ├── exception.py │ ├── iterator_wrapper.py │ ├── native_wrapper.py │ ├── promise.py │ └── validation.py │ ├── concept │ ├── answer │ │ ├── concept_document_iterator.py │ │ ├── concept_row.py │ │ ├── concept_row_iterator.py │ │ ├── ok_query_answer.py │ │ ├── query_answer.py │ │ └── query_answer_factory.py │ ├── concept.py │ ├── concept_factory.py │ ├── instance │ │ ├── attribute.py │ │ ├── entity.py │ │ ├── instance.py │ │ └── relation.py │ ├── type │ │ ├── attribute_type.py │ │ ├── entity_type.py │ │ ├── relation_type.py │ │ ├── role_type.py │ │ └── type.py │ └── value │ │ └── value.py │ ├── connection │ ├── database.py │ ├── database_manager.py │ ├── driver.py │ └── transaction.py │ ├── driver.py │ └── user │ ├── user.py │ └── user_manager.py ├── rust ├── BUILD ├── Cargo.lock ├── Cargo.toml ├── README.md ├── docs_structure.bzl ├── example.rs ├── rustfmt.toml ├── src │ ├── answer │ │ ├── concept_document.rs │ │ ├── concept_row.rs │ │ ├── json.rs │ │ └── mod.rs │ ├── common │ │ ├── address.rs │ │ ├── error.rs │ │ ├── id.rs │ │ ├── info.rs │ │ ├── mod.rs │ │ ├── promise_async.rs │ │ ├── promise_sync.rs │ │ ├── query_options.rs │ │ ├── stream_async.rs │ │ ├── stream_sync.rs │ │ └── transaction_options.rs │ ├── concept │ │ ├── instance.rs │ │ ├── mod.rs │ │ ├── type_.rs │ │ └── value.rs │ ├── connection │ │ ├── credentials.rs │ │ ├── driver_options.rs │ │ ├── message.rs │ │ ├── mod.rs │ │ ├── network │ │ │ ├── channel.rs │ │ │ ├── mod.rs │ │ │ ├── proto │ │ │ │ ├── common.rs │ │ │ │ ├── concept.rs │ │ │ │ ├── database.rs │ │ │ │ ├── message.rs │ │ │ │ ├── mod.rs │ │ │ │ └── user.rs │ │ │ ├── stub.rs │ │ │ └── transmitter │ │ │ │ ├── mod.rs │ │ │ │ ├── response_sink.rs │ │ │ │ ├── rpc.rs │ │ │ │ └── transaction.rs │ │ ├── runtime.rs │ │ ├── server_connection.rs │ │ └── transaction_stream.rs │ ├── database │ │ ├── database.rs │ │ ├── database_manager.rs │ │ └── mod.rs │ ├── driver.rs │ ├── lib.rs │ ├── transaction.rs │ └── user │ │ ├── mod.rs │ │ ├── user.rs │ │ └── user_manager.rs └── tests │ ├── BUILD │ ├── behaviour │ ├── BUILD │ ├── config │ │ ├── BUILD │ │ ├── Cargo.toml │ │ └── lib.rs │ ├── connection │ │ ├── BUILD │ │ ├── database.rs │ │ └── transaction.rs │ ├── defs.bzl │ ├── driver │ │ ├── BUILD │ │ ├── driver.rs │ │ └── user.rs │ ├── rules.bzl │ └── steps │ │ ├── BUILD │ │ ├── Cargo.toml │ │ ├── connection │ │ ├── database.rs │ │ ├── mod.rs │ │ ├── transaction.rs │ │ └── user.rs │ │ ├── lib.rs │ │ ├── params.rs │ │ ├── query.rs │ │ └── util.rs │ └── integration │ ├── BUILD │ ├── cluster │ ├── BUILD │ └── mod.rs │ ├── example.rs │ └── mod.rs ├── tool ├── docs │ ├── BUILD │ ├── adoc │ │ ├── AsciiDocBuilder.kt │ │ └── AsciiDocTableBuilder.kt │ ├── c │ │ ├── DoxygenParserC.kt │ │ └── rules.bzl │ ├── cpp │ │ ├── DoxygenParserCpp.kt │ │ └── rules.bzl │ ├── csharp │ │ ├── DoxygenParserCsharp.kt │ │ └── rules.bzl │ ├── dataclasses │ │ ├── Class.kt │ │ ├── EnumConstant.kt │ │ ├── Method.kt │ │ └── Variable.kt │ ├── examples │ │ ├── MarkdownCodeUpdater.kt │ │ ├── TestExamplesParser.kt │ │ └── rules.bzl │ ├── java │ │ ├── JavaDocsParser.kt │ │ └── rules.bzl │ ├── nodejs │ │ ├── NodejsDocsParser.kt │ │ └── rules.bzl │ ├── python │ │ ├── PythonDocsParser.kt │ │ └── rules.bzl │ ├── rust │ │ ├── RustDocsParser.kt │ │ └── rules.bzl │ ├── update.sh │ ├── update_readme.sh │ └── util │ │ └── Util.kt ├── release │ ├── BUILD │ └── create_notes.sh ├── rust │ ├── BUILD │ └── sync.sh └── test │ ├── BUILD │ ├── EchoJavaHome.java │ ├── resources │ ├── BUILD │ └── encryption │ │ ├── ext-grpc-certificate.pem │ │ ├── ext-grpc-private-key.pem │ │ ├── ext-grpc-root-ca.pem │ │ ├── int-grpc-certificate.pem │ │ ├── int-grpc-private-key.pem │ │ ├── int-grpc-root-ca.pem │ │ ├── int-zmq-private-key │ │ ├── int-zmq-public-key │ │ └── keystore.pkcs12 │ ├── start-cluster-servers.sh │ ├── start-community-server.sh │ ├── stop-cluster-servers.sh │ └── stop-community-server.sh └── workspace-status.sh /.bazelversion: -------------------------------------------------------------------------------- 1 | 6.2.0 2 | -------------------------------------------------------------------------------- /.circleci/windows/dependencies.config: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /.circleci/windows/git.patch: -------------------------------------------------------------------------------- 1 | diff --git a/WORKSPACE b/WORKSPACE 2 | index a6df7ba2..420f8397 100644 3 | --- a/WORKSPACE 4 | +++ b/WORKSPACE 5 | @@ -15,7 +15,7 @@ 6 | # specific language governing permissions and limitations 7 | # under the License. 8 | 9 | -workspace(name = "typedb_driver") 10 | +workspace(name = "v") 11 | 12 | ############################## 13 | # Load @typedb_dependencies # 14 | -------------------------------------------------------------------------------- /.factory/test-cluster.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | 19 | set -ex 20 | bazel test $(bazel query "filter('^.*cluster.*$', kind(.*_test, $1))") "${@:2}" 21 | -------------------------------------------------------------------------------- /.factory/test-community.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | 19 | set -ex 20 | bazel test $(bazel query "filter('^.*community.*$', kind(.*_test, $1))") "${@:2}" 21 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | *.bat text eol=crlf 19 | 20 | 21 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | /* @dmitrii-ubskii @flyingsilverfin 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/BUG_REPORT.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug Report 3 | about: Report a bug here, or visit forum.typedb.com for troubleshooting discussions 4 | title: '' 5 | labels: bug 6 | assignees: '' 7 | 8 | --- 9 | 10 | ## Description 11 | 12 | 13 | ## Environment 14 | 15 | 1. TypeDB distribution: Core/Cloud 16 | 2. TypeDB version: 17 | 3. Environment: Linux/Mac/Windows/TypeDB Cloud/Google Cloud/AWS/Azure 18 | 4. Studio version: 19 | 5. Other details: 20 | 21 | ## Reproducible Steps 22 | 23 | 1. Set up 24 | 25 | 26 | 2. Execute 27 | 28 | 29 | 3. Unexpected result 30 | 31 | 32 | 33 | ## Expected result 34 | 35 | 36 | ## Additional information 37 | 38 | Relevant logs from TypeDB or Driver: 39 | 40 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature Request 3 | about: Request a feature here, or visit forum.typedb.com for ideas and questions 4 | title: '' 5 | labels: feature 6 | assignees: '' 7 | 8 | --- 9 | 10 | ## Problem to Solve 11 | 12 | 13 | ## Current Workaround 14 | 15 | 16 | ## Proposed Solution 17 | 18 | 19 | ## Additional Information 20 | 21 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/LANGUAGE_DRIVER_REQUEST.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Language Driver Request 3 | about: Request a new language driver here, or visit forum.typedb.com for ideas and questions 4 | --- 5 | 6 | Before raising this issue, check if there is an existing issue for the language driver you want. If there is, please upvote or comment on it, rather than raising a duplicate issue. If there isn't, submit this new issue with the title: "Language Driver Request for {language}". Finally, please remove this line. 7 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/REFACTOR.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Refactor 3 | about: Propose an architecture refactor here 4 | title: '' 5 | labels: refactor 6 | assignees: '' 7 | 8 | --- 9 | 10 | 11 | ## Problem to Solve 12 | 13 | 14 | ## Proposed Solution 15 | 16 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ## Usage and product changes 2 | 3 | 4 | ## Implementation 5 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | 2 | [workspace] 3 | resolver = "2" 4 | members = ["rust", "rust/tests/behaviour/config", "rust/tests/behaviour/steps", "c"] 5 | 6 | -------------------------------------------------------------------------------- /VERSION: -------------------------------------------------------------------------------- 1 | 3.2.0 -------------------------------------------------------------------------------- /c/.clang-format: -------------------------------------------------------------------------------- 1 | --- 2 | BasedOnStyle: Chromium 3 | IndentWidth: 4 4 | AllowShortIfStatementsOnASingleLine: AllIfsAndElse 5 | ColumnLimit: 0 6 | --- 7 | -------------------------------------------------------------------------------- /c/Cargo.toml: -------------------------------------------------------------------------------- 1 | 2 | # Generated by TypeDB Cargo sync tool. 3 | # Do not modify this file. 4 | 5 | features = {} 6 | 7 | [package] 8 | name = "typedb_driver_clib" 9 | edition = "2021" 10 | version = "0.0.0" 11 | 12 | [lib] 13 | path = "src/lib.rs" 14 | 15 | [dependencies] 16 | 17 | [dependencies.env_logger] 18 | features = ["auto-color", "color", "default", "humantime", "regex"] 19 | version = "0.10.2" 20 | default-features = false 21 | 22 | [dependencies.log] 23 | features = ["kv", "kv_unstable", "std", "value-bag"] 24 | version = "0.4.27" 25 | default-features = false 26 | 27 | [dependencies.typedb-driver] 28 | path = "../rust" 29 | features = ["sync"] 30 | default-features = false 31 | 32 | [dependencies.chrono] 33 | features = ["alloc", "android-tzdata", "clock", "default", "iana-time-zone", "js-sys", "now", "oldtime", "serde", "std", "wasm-bindgen", "wasmbind", "winapi", "windows-link"] 34 | version = "0.4.40" 35 | default-features = false 36 | 37 | [dependencies.itertools] 38 | features = ["default", "use_alloc", "use_std"] 39 | version = "0.10.5" 40 | default-features = false 41 | 42 | -------------------------------------------------------------------------------- /c/src/lib.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | mod answer; 21 | mod common; 22 | mod concept; 23 | mod connection; 24 | mod database; 25 | mod database_manager; 26 | mod error; 27 | mod iterator; 28 | mod memory; 29 | mod promise; 30 | mod query_options; 31 | mod transaction; 32 | mod transaction_options; 33 | mod user; 34 | mod user_manager; 35 | -------------------------------------------------------------------------------- /c/swig/typedb_driver_go.swg: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | /* TODO: Implement */ 21 | -------------------------------------------------------------------------------- /c/tests/assembly/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 19 | 20 | checkstyle_test( 21 | name = "checkstyle", 22 | size = "small", 23 | include = glob(["*"]), 24 | exclude = ["README.md"], 25 | license_type = "apache-header", 26 | ) 27 | -------------------------------------------------------------------------------- /c/tests/integration/common.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | extern const char* TYPEDB_CORE_ADDRESS; 21 | 22 | bool check_error_may_print(const char* filename, int lineno); 23 | 24 | void delete_database_if_exists(DatabaseManager* databaseManager, const char* name); 25 | -------------------------------------------------------------------------------- /c/tests/integration/tests.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | bool test_database_management(); 21 | 22 | bool test_query_schema(); 23 | bool test_query_data(); 24 | 25 | bool test_concept_api_schema(); 26 | bool test_concept_api_data(); 27 | -------------------------------------------------------------------------------- /cpp/build_opts.bzl: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | cxxopts = select({ 19 | "@typedb_bazel_distribution//platform:is_windows": ["/std:c++17"], 20 | "//conditions:default": ["-std=c++17"], 21 | }) 22 | -------------------------------------------------------------------------------- /cpp/lib/common/native.hpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | #pragma once 21 | 22 | namespace TypeDB { 23 | 24 | namespace _native { 25 | 26 | extern "C" { 27 | #include "c/typedb_driver.h" 28 | } 29 | 30 | } // namespace _native 31 | 32 | } // namespace TypeDB 33 | -------------------------------------------------------------------------------- /cpp/test/assembly/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 19 | 20 | checkstyle_test( 21 | name = "checkstyle", 22 | size = "small", 23 | include = glob(["*"]), 24 | exclude = ["README.md"], 25 | license_type = "apache-header", 26 | ) 27 | -------------------------------------------------------------------------------- /cpp/test/behaviour/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 19 | 20 | checkstyle_test( 21 | name = "checkstyle", 22 | include = glob(["*"]), 23 | license_type = "apache-header", 24 | size = "small", 25 | ) 26 | -------------------------------------------------------------------------------- /cpp/test/behaviour/concept/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 19 | 20 | checkstyle_test( 21 | name = "checkstyle", 22 | include = glob(["*"]), 23 | license_type = "apache-header", 24 | size = "small", 25 | ) 26 | -------------------------------------------------------------------------------- /cpp/test/behaviour/concept/thing/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 19 | 20 | checkstyle_test( 21 | name = "checkstyle", 22 | include = glob(["*"]), 23 | license_type = "apache-header", 24 | size = "small", 25 | ) 26 | -------------------------------------------------------------------------------- /cpp/test/behaviour/concept/type/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 19 | 20 | checkstyle_test( 21 | name = "checkstyle", 22 | include = glob(["*"]), 23 | license_type = "apache-header", 24 | size = "small", 25 | ) 26 | -------------------------------------------------------------------------------- /cpp/test/behaviour/connection/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 19 | 20 | checkstyle_test( 21 | name = "checkstyle", 22 | include = glob(["*"]), 23 | license_type = "apache-header", 24 | size = "small", 25 | ) 26 | -------------------------------------------------------------------------------- /cpp/test/behaviour/driver/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 19 | 20 | checkstyle_test( 21 | name = "checkstyle", 22 | include = glob(["*"]), 23 | license_type = "apache-header", 24 | size = "small", 25 | ) 26 | -------------------------------------------------------------------------------- /cpp/test/behaviour/query/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 19 | 20 | checkstyle_test( 21 | name = "checkstyle", 22 | size = "small", 23 | include = glob(["*"]), 24 | license_type = "apache-header", 25 | ) 26 | -------------------------------------------------------------------------------- /cpp/test/cucumber/test/test.feature: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | # 19 | 20 | #noinspection CucumberUndefinedStep 21 | Feature: Stone Paper Scissors 22 | 23 | Background: Clear state 24 | Given Nobody has made a move 25 | 26 | Scenario: Test regex steps 27 | Given Alice plays rock 28 | Given Bob plays scissors 29 | Then Alice wins 30 | -------------------------------------------------------------------------------- /csharp/Test/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 19 | 20 | checkstyle_test( 21 | name = "checkstyle", 22 | include = glob(["*"]), 23 | license_type = "apache-header", 24 | ) 25 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 19 | 20 | checkstyle_test( 21 | name = "checkstyle", 22 | include = glob(["*"]), 23 | license_type = "apache-header", 24 | ) 25 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Concept/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 19 | 20 | checkstyle_test( 21 | name = "checkstyle", 22 | include = glob(["*"]), 23 | license_type = "apache-header", 24 | ) 25 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Concept/Thing/Attribute/AttributeTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/concept/thing/attribute.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Concept/Thing/Entity/EntityTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/concept/thing/entity.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Concept/Thing/Relation/RelationTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/concept/thing/relation.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Concept/Type/AttributeType/AttributeTypeTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/concept/type/attributetype.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Concept/Type/EntityType/EntityTypeTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/concept/type/entitytype.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Concept/Type/RelationType/RelationTypeTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/concept/type/relationtype.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Connection/Database/DatabaseTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/connection/database.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Connection/Session/SessionTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/connection/session.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Connection/Transaction/TransactionTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/connection/transaction.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Connection/User/UserTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/connection/user.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Driver/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | package(default_visibility = ["//csharp/Test/Behaviour/Driver:__subpackages__"]) 19 | 20 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 21 | 22 | checkstyle_test( 23 | name = "checkstyle", 24 | include = glob(["*"]), 25 | license_type = "apache-header", 26 | ) 27 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Driver/Query/QueryTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/driver/query.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Query/Language/Define/DefineTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/query/language/define.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Query/Language/Delete/DeleteTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/query/language/delete.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Query/Language/Expression/ExpressionTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/query/language/expression.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Query/Language/Fetch/FetchTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/query/language/fetch.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Query/Language/Get/GetTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/query/language/get.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Query/Language/Insert/InsertTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/query/language/insert.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Query/Language/Match/MatchTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/query/language/match.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Query/Language/Modifiers/ModifiersTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/query/language/modifiers.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Query/Language/RuleValidation/RuleValidationTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/query/language/rule-validation.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Query/Language/Undefine/UndefineTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/query/language/undefine.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Query/Language/Update/UpdateTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/query/language/update.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Query/Reasoner/AttributeAttachment/AttributeAttachmentTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/query/reasoner/attribute-attachment.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Query/Reasoner/CompoundQueries/CompoundQueriesTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/query/reasoner/compound-queries.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Query/Reasoner/ConceptInequality/ConceptInequalityTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/query/reasoner/concept-inequality.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Query/Reasoner/Negation/NegationTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/query/reasoner/negation.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Query/Reasoner/Recursion/RecursionTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/query/reasoner/recursion.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Query/Reasoner/RelationInference/RelationInferenceTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/query/reasoner/relation-inference.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Query/Reasoner/RuleInteraction/RuleInteractionTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/query/reasoner/rule-interaction.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Query/Reasoner/SchemaQueries/SchemaQueriesTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/query/reasoner/schema-queries.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Query/Reasoner/TypeHierarchy/TypeHierarchyTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/query/reasoner/type-hierarchy.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Query/Reasoner/ValuePredicate/ValuePredicateTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/query/reasoner/value-predicate.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Query/Reasoner/VariableRoles/VariableRolesTest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using Xunit.Gherkin.Quick; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | [FeatureFile("external/typedb_behaviour/query/reasoner/variable-roles.feature")] 25 | public partial class BehaviourSteps 26 | { 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /csharp/Test/Behaviour/Util/BehaviourTestException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | using System; 21 | 22 | namespace TypeDB.Driver.Test.Behaviour 23 | { 24 | public class BehaviourTestException : Exception 25 | { 26 | public BehaviourTestException(string message) 27 | : base(message) 28 | { 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /csharp/Test/Deployment/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 19 | 20 | checkstyle_test( 21 | name = "checkstyle", 22 | include = glob(["*"]), 23 | license_type = "apache-header", 24 | ) 25 | -------------------------------------------------------------------------------- /csharp/Test/Integration/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 19 | 20 | checkstyle_test( 21 | name = "checkstyle", 22 | include = glob(["*"]), 23 | license_type = "apache-header", 24 | ) 25 | -------------------------------------------------------------------------------- /csharp/Test/build_opts.bzl: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | integration_tests_deps = [ 19 | "@paket.csharp_deps//xunit" 20 | ] 21 | 22 | behaviour_tests_deps = [ 23 | "@paket.csharp_deps//gherkin", 24 | "@paket.csharp_deps//xunit.assert", 25 | "@paket.csharp_deps//xunit.gherkin.quick", 26 | "@paket.csharp_deps//xunit.runner.utility", 27 | "@paket.csharp_deps//xunit.extensibility.core", 28 | ] 29 | -------------------------------------------------------------------------------- /csharp/build_opts.bzl: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | nullable_context = "enable" 19 | target_framework = "net6.0" 20 | target_frameworks = [target_framework] 21 | targeting_packs = ["@paket.rules_dotnet_nuget_packages//microsoft.netcore.app.ref"] 22 | -------------------------------------------------------------------------------- /csharp/nuget/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 19 | 20 | checkstyle_test( 21 | name = "checkstyle", 22 | include = glob(["*"]), 23 | exclude = glob([ 24 | "paket.csharp_deps.bzl", 25 | "paket.csharp_deps_extension.bzl", 26 | "paket.lock", 27 | ]), 28 | license_type = "apache-header", 29 | ) 30 | -------------------------------------------------------------------------------- /csharp/nuget/paket.csharp_deps_extension.bzl: -------------------------------------------------------------------------------- 1 | "Generated by paket2bazel" 2 | 3 | load(":paket.csharp_deps.bzl", _csharp_deps = "csharp_deps") 4 | 5 | def _csharp_deps_impl(_ctx): 6 | _csharp_deps() 7 | 8 | csharp_deps_extension = module_extension( 9 | implementation = _csharp_deps_impl, 10 | ) 11 | -------------------------------------------------------------------------------- /csharp/nuget/paket.dependencies: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | group csharp_deps 19 | framework: net6.0 20 | storage: none 21 | source https://api.nuget.org/v3/index.json 22 | 23 | nuget XUnit.Gherkin.Quick 4.5.0 24 | nuget xunit.runner.utility 2.6.4 25 | nuget Gherkin 5.0.0 26 | nuget Newtonsoft.Json 13.0.3 27 | -------------------------------------------------------------------------------- /dependencies/maven/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 19 | 20 | checkstyle_test( 21 | name = "checkstyle", 22 | include = glob(["*"]), 23 | exclude = ["artifacts.snapshot"], 24 | license_type = "apache-header", 25 | ) 26 | -------------------------------------------------------------------------------- /dependencies/maven/update.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | 19 | bazel run @typedb_dependencies//library/maven:update 20 | -------------------------------------------------------------------------------- /dependencies/typedb/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 19 | 20 | checkstyle_test( 21 | name = "checkstyle", 22 | include = glob(["*"]), 23 | license_type = "apache-header", 24 | size = "small", 25 | ) 26 | -------------------------------------------------------------------------------- /docs/antora.yml: -------------------------------------------------------------------------------- 1 | name: api-ref 2 | version: 3.x 3 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/c/concept/attribute.adoc: -------------------------------------------------------------------------------- 1 | [#_methods_concept_attribute] 2 | === attribute 3 | 4 | [#_attribute_get_owners] 5 | ==== attribute_get_owners 6 | 7 | [source,cpp] 8 | ---- 9 | struct ConceptIterator* attribute_get_owners(struct Transaction* transaction, const struct Concept* attribute, const struct Concept* thing_type) 10 | ---- 11 | 12 | 13 | 14 | Retrieves the instances that own this ``Attribute``. 15 | 16 | [caption=""] 17 | .Returns 18 | `struct ConceptIterator*` 19 | 20 | [#_attribute_get_type] 21 | ==== attribute_get_type 22 | 23 | [source,cpp] 24 | ---- 25 | struct Concept* attribute_get_type(const struct Concept* attribute) 26 | ---- 27 | 28 | 29 | 30 | Retrieves the type which this ``Attribute`` belongs to. 31 | 32 | [caption=""] 33 | .Returns 34 | `struct Concept*` 35 | 36 | [#_attribute_get_value] 37 | ==== attribute_get_value 38 | 39 | [source,cpp] 40 | ---- 41 | struct Concept* attribute_get_value(const struct Concept* attribute) 42 | ---- 43 | 44 | 45 | 46 | Retrieves the type which this ``Relation`` belongs to. 47 | 48 | [caption=""] 49 | .Returns 50 | `struct Concept*` 51 | 52 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/c/concept/entity.adoc: -------------------------------------------------------------------------------- 1 | [#_methods_concept_entity] 2 | === entity 3 | 4 | [#_entity_get_type] 5 | ==== entity_get_type 6 | 7 | [source,cpp] 8 | ---- 9 | struct Concept* entity_get_type(const struct Concept* entity) 10 | ---- 11 | 12 | 13 | 14 | Retrieves the type which this ``Entity`` belongs to. 15 | 16 | [caption=""] 17 | .Returns 18 | `struct Concept*` 19 | 20 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/c/schema/transitivity.adoc: -------------------------------------------------------------------------------- 1 | [#_methods_schema_transitivity] 2 | === transitivity 3 | 4 | [#_Struct_Transitivity] 5 | ==== Struct Transitivity 6 | 7 | 8 | 9 | Used for specifying whether we need explicit or transitive subtyping, instances, etc. 10 | 11 | 12 | [#_Enum_Transitivity] 13 | ==== Enum Transitivity 14 | 15 | 16 | 17 | Used for specifying whether we need explicit or transitive subtyping, instances, etc. 18 | 19 | 20 | [caption=""] 21 | .Enum constants 22 | // tag::enum_constants[] 23 | [cols=""] 24 | [options="header"] 25 | |=== 26 | |Name 27 | a| `Explicit` 28 | a| `Transitive` 29 | |=== 30 | // end::enum_constants[] 31 | 32 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/c/schema/valuetype.adoc: -------------------------------------------------------------------------------- 1 | [#_methods_schema_valuetype] 2 | === valuetype 3 | 4 | [#_Struct_ValueType] 5 | ==== Struct ValueType 6 | 7 | 8 | 9 | Represents the type of primitive value is held by a Value or Attribute. 10 | 11 | [#_Enum_ValueType] 12 | ==== Enum ValueType 13 | 14 | 15 | 16 | Represents the type of primitive value is held by a Value or Attribute. 17 | 18 | [caption=""] 19 | .Enum constants 20 | // tag::enum_constants[] 21 | [cols=""] 22 | [options="header"] 23 | |=== 24 | |Name 25 | a| `Boolean` 26 | a| `DateTime` 27 | a| `Double` 28 | a| `Long` 29 | a| `Object` 30 | a| `String` 31 | |=== 32 | // end::enum_constants[] 33 | 34 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/cpp/answer/Explainable.adoc: -------------------------------------------------------------------------------- 1 | [#_Explainable] 2 | === Explainable 3 | 4 | *Package*: `TypeDB` 5 | 6 | 7 | 8 | Contains an explainable object. 9 | 10 | // tag::methods[] 11 | [#_stdstring_TypeDBExplainableconjunction_] 12 | ==== conjunction 13 | 14 | [source,cpp] 15 | ---- 16 | std::string TypeDB::Explainable::conjunction() 17 | ---- 18 | 19 | 20 | 21 | Retrieves the subquery of the original query that is actually being explained. 22 | 23 | 24 | [caption=""] 25 | .Returns 26 | `std::string` 27 | 28 | [caption=""] 29 | .Code examples 30 | [source,cpp] 31 | ---- 32 | explainable.conjunction(); 33 | ---- 34 | 35 | [#_int64_t_TypeDBExplainableexplainableId_] 36 | ==== explainableId 37 | 38 | [source,cpp] 39 | ---- 40 | int64_t TypeDB::Explainable::explainableId() 41 | ---- 42 | 43 | 44 | 45 | Retrieves the unique ID that identifies this ``Explainable``. 46 | 47 | 48 | [caption=""] 49 | .Returns 50 | `int64_t` 51 | 52 | [caption=""] 53 | .Code examples 54 | [source,cpp] 55 | ---- 56 | explainable.id(); 57 | ---- 58 | 59 | // end::methods[] 60 | 61 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/cpp/answer/Future.adoc: -------------------------------------------------------------------------------- 1 | [#_Future] 2 | === Future 3 | 4 | *Package*: `TypeDB` 5 | 6 | 7 | 8 | A structure emulating std::future, used as result of an asynchronous call to the server. 9 | 10 | Note that a future must be evaluated for any server-side exceptions to be raised. 11 | 12 | // tag::methods[] 13 | [#_RETURN_TypeDBFuture_RETURN_NATIVE_PROMISE_HELPER_get_] 14 | ==== get 15 | 16 | [source,cpp] 17 | ---- 18 | RETURN TypeDB::Future< RETURN, NATIVE_PROMISE, HELPER >::get() 19 | ---- 20 | 21 | 22 | 23 | Waits for the call to complete and returns the result. 24 | 25 | [caption=""] 26 | .Returns 27 | `RETURN` 28 | 29 | [#_void_TypeDBFuture_RETURN_NATIVE_PROMISE_HELPER_wait_] 30 | ==== wait 31 | 32 | [source,cpp] 33 | ---- 34 | void TypeDB::Future< RETURN, NATIVE_PROMISE, HELPER >::wait() 35 | ---- 36 | 37 | 38 | 39 | Waits for the call to complete and ignores the result. Any exceptions will still be thrown. 40 | 41 | [caption=""] 42 | .Returns 43 | `void` 44 | 45 | // end::methods[] 46 | 47 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/cpp/answer/Iterator.adoc: -------------------------------------------------------------------------------- 1 | [#_Iterator] 2 | === Iterator 3 | 4 | *Package*: `TypeDB` 5 | 6 | 7 | 8 | A structure emulating std::iterator, used for streaming of query results from the server. 9 | 10 | It is an ``input_iterator``, meaning it can only be consumed once. Valid operations are ``++it`` and ``*it`` 11 | 12 | Note that ``it++`` is deleted, and ``*it`` can only be called once per iterator position, owing to the move semantics of the returned data. 13 | 14 | Also see ``Iterable`` 15 | 16 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/cpp/answer/JSONType.adoc: -------------------------------------------------------------------------------- 1 | [#_JSONType] 2 | === JSONType 3 | 4 | *Package*: `TypeDB` 5 | 6 | 7 | 8 | Specifies the exact type of this JSON object 9 | 10 | [caption=""] 11 | .Enum constants 12 | // tag::enum_constants[] 13 | [cols=""] 14 | [options="header"] 15 | |=== 16 | |Name 17 | a| `ARRAY` 18 | a| `BOOLEAN` 19 | a| `DOUBLE` 20 | a| `INVALID` 21 | a| `LONG` 22 | a| `MAP` 23 | a| `NULL_VALUE` 24 | a| `STRING` 25 | |=== 26 | // end::enum_constants[] 27 | 28 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/cpp/answer/OwnerAttributePair.adoc: -------------------------------------------------------------------------------- 1 | [#_OwnerAttributePair] 2 | === OwnerAttributePair 3 | 4 | *Package*: `TypeDB` 5 | 6 | 7 | 8 | Simple class holding the owner concept & owned attribute identifying an explainable ownership. 9 | 10 | [caption=""] 11 | .Fields 12 | // tag::properties[] 13 | [cols=",,"] 14 | [options="header"] 15 | |=== 16 | |Name |Type |Description 17 | a| `attribute` a| `std::string TypeDB::OwnerAttributePair` a| The owned attribute. 18 | a| `owner` a| `std::string TypeDB::OwnerAttributePair` a| The owner concept. 19 | |=== 20 | // end::properties[] 21 | 22 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/cpp/concept/ConceptType.adoc: -------------------------------------------------------------------------------- 1 | [#_ConceptType] 2 | === ConceptType 3 | 4 | *Package*: `TypeDB` 5 | 6 | 7 | 8 | The exact type of a Concept object. Use for downcasting to the appropriate type. 9 | 10 | [caption=""] 11 | .Enum constants 12 | // tag::enum_constants[] 13 | [cols=""] 14 | [options="header"] 15 | |=== 16 | |Name 17 | a| `ATTRIBUTE` 18 | a| `ATTRIBUTE_TYPE` 19 | a| `ENTITY` 20 | a| `ENTITY_TYPE` 21 | a| `RELATION` 22 | a| `RELATION_TYPE` 23 | a| `ROLE_TYPE` 24 | a| `ROOT_THING_TYPE` 25 | a| `VALUE` 26 | |=== 27 | // end::enum_constants[] 28 | 29 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/cpp/concept/Transitivity.adoc: -------------------------------------------------------------------------------- 1 | [#_Transitivity] 2 | === Transitivity 3 | 4 | *Package*: `TypeDB` 5 | 6 | 7 | 8 | Used in ConceptAPI to specify whether to query only explicit schema constraints or also include transitive ones 9 | 10 | [caption=""] 11 | .Enum constants 12 | // tag::enum_constants[] 13 | [cols=""] 14 | [options="header"] 15 | |=== 16 | |Name 17 | a| `EXPLICIT` 18 | a| `TRANSITIVE` 19 | |=== 20 | // end::enum_constants[] 21 | 22 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/cpp/data/Entity.adoc: -------------------------------------------------------------------------------- 1 | [#_Entity] 2 | === Entity 3 | 4 | *Package*: `TypeDB` 5 | 6 | *Supertypes:* 7 | 8 | * `TypeDB::Thing` 9 | * `TypeDB::Concept` 10 | 11 | 12 | 13 | Instance of data of an entity type, representing a standalone object that exists in the data model independently. 14 | 15 | Entity does not have a value. It is usually addressed by its ownership over attribute instances and/or roles played in relation instances. 16 | 17 | // tag::methods[] 18 | [#_stdunique_ptr_EntityType_TypeDBEntitygetType_] 19 | ==== getType 20 | 21 | [source,cpp] 22 | ---- 23 | std::unique_ptr< EntityType > TypeDB::Entity::getType() 24 | ---- 25 | 26 | 27 | 28 | Retrieves the type which this ``Entity`` belongs to. 29 | 30 | 31 | [caption=""] 32 | .Returns 33 | `std::unique_ptr< EntityType >` 34 | 35 | [caption=""] 36 | .Code examples 37 | [source,cpp] 38 | ---- 39 | entity.getType(); 40 | ---- 41 | 42 | // end::methods[] 43 | 44 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/cpp/errors/DriverException.adoc: -------------------------------------------------------------------------------- 1 | [#_DriverException] 2 | === DriverException 3 | 4 | *Package*: `TypeDB` 5 | 6 | 7 | 8 | Exceptions raised by the driver. 9 | 10 | // tag::methods[] 11 | [#_const_stdstring_view_TypeDBDriverExceptioncode_] 12 | ==== code 13 | 14 | [source,cpp] 15 | ---- 16 | const std::string_view TypeDB::DriverException::code() 17 | ---- 18 | 19 | 20 | 21 | Retrieves the error code. 22 | 23 | 24 | [caption=""] 25 | .Returns 26 | `const std::string_view` 27 | 28 | [caption=""] 29 | .Code examples 30 | [source,cpp] 31 | ---- 32 | try { ... } 33 | catch (TypeDB::DriverException& e){ 34 | if ("[CXN11]" == e.code()) { ... } 35 | } 36 | ---- 37 | 38 | [#_const_stdstring_view_TypeDBDriverExceptionmessage_] 39 | ==== message 40 | 41 | [source,cpp] 42 | ---- 43 | const std::string_view TypeDB::DriverException::message() 44 | ---- 45 | 46 | 47 | 48 | Retrieves the descriptive error message. 49 | 50 | 51 | [caption=""] 52 | .Returns 53 | `const std::string_view` 54 | 55 | [caption=""] 56 | .Code examples 57 | [source,cpp] 58 | ---- 59 | try { ... } 60 | catch (TypeDB::DriverException& e){ 61 | logError(e.message()); 62 | throw e; 63 | } 64 | ---- 65 | 66 | // end::methods[] 67 | 68 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/cpp/schema/ValueType.adoc: -------------------------------------------------------------------------------- 1 | [#_ValueType] 2 | === ValueType 3 | 4 | *Package*: `TypeDB` 5 | 6 | 7 | 8 | Represents the type of primitive value is held by a Value or Attribute. 9 | 10 | [caption=""] 11 | .Enum constants 12 | // tag::enum_constants[] 13 | [cols=""] 14 | [options="header"] 15 | |=== 16 | |Name 17 | a| `BOOLEAN` 18 | a| `DATETIME` 19 | a| `DOUBLE` 20 | a| `LONG` 21 | a| `OBJECT` 22 | a| `STRING` 23 | |=== 24 | // end::enum_constants[] 25 | 26 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/cpp/session/SessionType.adoc: -------------------------------------------------------------------------------- 1 | [#_SessionType] 2 | === SessionType 3 | 4 | *Package*: `TypeDB` 5 | 6 | 7 | 8 | Used to specify the type of the session. 9 | 10 | 11 | [caption=""] 12 | .Examples 13 | [source,cpp] 14 | ---- 15 | driver.session(database, TypeDBSession.Type.SCHEMA); 16 | ---- 17 | 18 | [caption=""] 19 | .Enum constants 20 | // tag::enum_constants[] 21 | [cols=""] 22 | [options="header"] 23 | |=== 24 | |Name 25 | a| `DATA` 26 | a| `SCHEMA` 27 | |=== 28 | // end::enum_constants[] 29 | 30 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/cpp/transaction/TransactionType.adoc: -------------------------------------------------------------------------------- 1 | [#_TransactionType] 2 | === TransactionType 3 | 4 | *Package*: `TypeDB` 5 | 6 | 7 | 8 | Used to specify the type of transaction. 9 | 10 | 11 | [caption=""] 12 | .Examples 13 | [source,cpp] 14 | ---- 15 | session.transaction(TransactionType.READ); 16 | ---- 17 | 18 | [caption=""] 19 | .Enum constants 20 | // tag::enum_constants[] 21 | [cols=""] 22 | [options="header"] 23 | |=== 24 | |Name 25 | a| `READ` 26 | a| `WRITE` 27 | |=== 28 | // end::enum_constants[] 29 | 30 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/csharp/answer/IConceptMapGroup.adoc: -------------------------------------------------------------------------------- 1 | [#_IConceptMapGroup] 2 | === IConceptMapGroup 3 | 4 | *Package*: `TypeDB.Driver.Api` 5 | 6 | 7 | 8 | Contains an element of the group query result. 9 | 10 | // tag::methods[] 11 | [#_IEnumerable_IConceptMap_TypeDB_Driver_Api_IConceptMapGroup_GetConceptMaps_] 12 | ==== GetConceptMaps 13 | 14 | [source,cs] 15 | ---- 16 | IEnumerable< IConceptMap > GetConceptMaps() 17 | ---- 18 | 19 | 20 | 21 | Retrieves the ``IConceptMap``s of the group. 22 | 23 | 24 | [caption=""] 25 | .Returns 26 | `IEnumerable< IConceptMap >` 27 | 28 | [caption=""] 29 | .Code examples 30 | [source,cs] 31 | ---- 32 | conceptMapGroup.GetConceptMaps(); 33 | ---- 34 | 35 | [#_IConcept_TypeDB_Driver_Api_IConceptMapGroup_Owner] 36 | ==== Owner 37 | 38 | [source,cs] 39 | ---- 40 | IConcept TypeDB.Driver.Api.IConceptMapGroup.Owner 41 | ---- 42 | 43 | 44 | 45 | Retrieves the concept that is the group owner. 46 | 47 | 48 | [caption=""] 49 | .Returns 50 | `IConcept` 51 | 52 | [caption=""] 53 | .Code examples 54 | [source,cs] 55 | ---- 56 | conceptMapGroup.Owner; 57 | ---- 58 | 59 | // end::methods[] 60 | 61 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/csharp/answer/IExplainable.adoc: -------------------------------------------------------------------------------- 1 | [#_IExplainable] 2 | === IExplainable 3 | 4 | *Package*: `TypeDB.Driver.Api.IConceptMap` 5 | 6 | 7 | 8 | Contains an explainable object. 9 | 10 | // tag::methods[] 11 | [#_string_TypeDB_Driver_Api_IConceptMap_IExplainable_Conjunction] 12 | ==== Conjunction 13 | 14 | [source,cs] 15 | ---- 16 | string TypeDB.Driver.Api.IConceptMap.IExplainable.Conjunction 17 | ---- 18 | 19 | 20 | 21 | Retrieves the subquery of the original query that is actually being explained. 22 | 23 | 24 | [caption=""] 25 | .Returns 26 | `string` 27 | 28 | [caption=""] 29 | .Code examples 30 | [source,cs] 31 | ---- 32 | explainable.Conjunction; 33 | ---- 34 | 35 | [#_long_TypeDB_Driver_Api_IConceptMap_IExplainable_Id] 36 | ==== Id 37 | 38 | [source,cs] 39 | ---- 40 | long TypeDB.Driver.Api.IConceptMap.IExplainable.Id 41 | ---- 42 | 43 | 44 | 45 | Retrieves the unique ID that identifies this ``IExplainable``. 46 | 47 | 48 | [caption=""] 49 | .Returns 50 | `long` 51 | 52 | [caption=""] 53 | .Code examples 54 | [source,cs] 55 | ---- 56 | explainable.Id; 57 | ---- 58 | 59 | // end::methods[] 60 | 61 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/csharp/answer/IValueGroup.adoc: -------------------------------------------------------------------------------- 1 | [#_IValueGroup] 2 | === IValueGroup 3 | 4 | *Package*: `TypeDB.Driver.Api` 5 | 6 | 7 | 8 | Contains an element of the group aggregate query result. 9 | 10 | // tag::methods[] 11 | [#_IConcept_TypeDB_Driver_Api_IValueGroup_Owner] 12 | ==== Owner 13 | 14 | [source,cs] 15 | ---- 16 | IConcept TypeDB.Driver.Api.IValueGroup.Owner 17 | ---- 18 | 19 | 20 | 21 | Retrieves the concept that is the group owner. 22 | 23 | 24 | [caption=""] 25 | .Returns 26 | `IConcept` 27 | 28 | [caption=""] 29 | .Code examples 30 | [source,cs] 31 | ---- 32 | conceptMapGroup.Owner; 33 | ---- 34 | 35 | [#_IValue_TypeDB_Driver_Api_IValueGroup_Value] 36 | ==== Value 37 | 38 | [source,cs] 39 | ---- 40 | IValue? TypeDB.Driver.Api.IValueGroup.Value 41 | ---- 42 | 43 | 44 | 45 | Retrieves the ``Value`` answer of the group. 46 | 47 | 48 | [caption=""] 49 | .Returns 50 | `IValue?` 51 | 52 | [caption=""] 53 | .Code examples 54 | [source,cs] 55 | ---- 56 | valueGroup.Value; 57 | ---- 58 | 59 | // end::methods[] 60 | 61 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/csharp/concept/Transitivity.adoc: -------------------------------------------------------------------------------- 1 | [#_Transitivity] 2 | === Transitivity 3 | 4 | *Package*: `TypeDB.Driver.Api.IConcept` 5 | 6 | 7 | 8 | This class is used for specifying whether we need explicit or transitive subtyping, instances, etc. 9 | 10 | 11 | [caption=""] 12 | .Examples 13 | [source,cs] 14 | ---- 15 | attributeType.GetOwners(transaction, annotation, Explicit); 16 | ---- 17 | 18 | [caption=""] 19 | .Enum constants 20 | // tag::enum_constants[] 21 | [cols=""] 22 | [options="header"] 23 | |=== 24 | |Name 25 | a| `Explicit` 26 | a| `Transitive` 27 | |=== 28 | // end::enum_constants[] 29 | 30 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/csharp/data/ValueType.adoc: -------------------------------------------------------------------------------- 1 | [#_ValueType] 2 | === ValueType 3 | 4 | *Package*: `TypeDB.Driver.Api.IValue` 5 | 6 | 7 | 8 | Used to specify the type of the value. 9 | 10 | 11 | [caption=""] 12 | .Examples 13 | [source,cs] 14 | ---- 15 | thingType.GetOwns(transaction, IValue.ValueType.String); 16 | ---- 17 | 18 | [caption=""] 19 | .Enum constants 20 | // tag::enum_constants[] 21 | [cols=""] 22 | [options="header"] 23 | |=== 24 | |Name 25 | a| `Bool` 26 | a| `DateTime` 27 | a| `Double` 28 | a| `Long` 29 | a| `Object` 30 | a| `String` 31 | |=== 32 | // end::enum_constants[] 33 | 34 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/csharp/errors/TypeDBDriverException.adoc: -------------------------------------------------------------------------------- 1 | [#_TypeDBDriverException] 2 | === TypeDBDriverException 3 | 4 | *Package*: `TypeDB.Driver.Common` 5 | 6 | 7 | 8 | Exceptions raised by the driver. 9 | 10 | // tag::methods[] 11 | [#_bool_TypeDB_Driver_Common_TypeDBDriverException_Contains_string_subString_] 12 | ==== Contains 13 | 14 | [source,cs] 15 | ---- 16 | bool Contains(string subString) 17 | ---- 18 | 19 | 20 | 21 | Checks whether a substring is a part of this exception's message. 22 | 23 | 24 | [caption=""] 25 | .Returns 26 | `bool` 27 | 28 | [caption=""] 29 | .Code examples 30 | [source,cs] 31 | ---- 32 | try 33 | { 34 | ... 35 | } 36 | catch (TypeDBDriverException e) 37 | { 38 | if (e.Contains("CSCO01")) 39 | { 40 | ... 41 | } 42 | else 43 | { 44 | ... 45 | } 46 | } 47 | ---- 48 | 49 | // end::methods[] 50 | 51 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/csharp/session/SessionType.adoc: -------------------------------------------------------------------------------- 1 | [#_SessionType] 2 | === SessionType 3 | 4 | *Package*: `TypeDB.Driver.Api` 5 | 6 | 7 | 8 | Used to specify the type of the session. 9 | 10 | 11 | [caption=""] 12 | .Examples 13 | [source,cs] 14 | ---- 15 | driver.Session(database, SessionType.Schema); 16 | ---- 17 | 18 | [caption=""] 19 | .Enum constants 20 | // tag::enum_constants[] 21 | [cols=""] 22 | [options="header"] 23 | |=== 24 | |Name 25 | a| `Data` 26 | a| `Schema` 27 | |=== 28 | // end::enum_constants[] 29 | 30 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/csharp/transaction/TransactionType.adoc: -------------------------------------------------------------------------------- 1 | [#_TransactionType] 2 | === TransactionType 3 | 4 | *Package*: `TypeDB.Driver.Api` 5 | 6 | 7 | 8 | Used to specify the type of transaction. 9 | 10 | 11 | [caption=""] 12 | .Examples 13 | [source,cs] 14 | ---- 15 | session.Transaction(TransactionType.Read); 16 | ---- 17 | 18 | [caption=""] 19 | .Enum constants 20 | // tag::enum_constants[] 21 | [cols=""] 22 | [options="header"] 23 | |=== 24 | |Name 25 | a| `Read` 26 | a| `Write` 27 | |=== 28 | // end::enum_constants[] 29 | 30 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/java/connection/Credentials.adoc: -------------------------------------------------------------------------------- 1 | [#_Credentials] 2 | === Credentials 3 | 4 | *Package*: `com.typedb.driver.api` 5 | 6 | User credentials for connecting to TypeDB Server. 7 | 8 | 9 | [caption=""] 10 | .Examples 11 | [source,java] 12 | ---- 13 | Credential credentials = new Credential(username, password); 14 | ---- 15 | 16 | // tag::methods[] 17 | [#_Credentials_Credentials_java_lang_String_java_lang_String] 18 | ==== Credentials 19 | 20 | [source,java] 21 | ---- 22 | public Credentials​(java.lang.String username, 23 | java.lang.String password) 24 | ---- 25 | 26 | 27 | 28 | [caption=""] 29 | .Input parameters 30 | [cols=",,"] 31 | [options="header"] 32 | |=== 33 | |Name |Description |Type 34 | a| `username` a| The name of the user to connect as a| `java.lang.String` 35 | a| `password` a| The password for the user a| `java.lang.String` 36 | |=== 37 | 38 | [caption=""] 39 | .Returns 40 | `public` 41 | 42 | // end::methods[] 43 | 44 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/java/connection/DriverOptions.adoc: -------------------------------------------------------------------------------- 1 | [#_DriverOptions] 2 | === DriverOptions 3 | 4 | *Package*: `com.typedb.driver.api` 5 | 6 | User connection settings (TLS encryption, etc.) for connecting to TypeDB Server. 7 | 8 | 9 | [caption=""] 10 | .Examples 11 | [source,java] 12 | ---- 13 | DriverOptions driverOptions = new DriverOptions(true, Path.of("path/to/ca-certificate.pem")); 14 | ---- 15 | 16 | // tag::methods[] 17 | [#_DriverOptions_DriverOptions_boolean_java_lang_String] 18 | ==== DriverOptions 19 | 20 | [source,java] 21 | ---- 22 | public DriverOptions​(boolean isTlsEnabled, 23 | java.lang.String tlsRootCAPath) 24 | ---- 25 | 26 | 27 | 28 | [caption=""] 29 | .Input parameters 30 | [cols=",,"] 31 | [options="header"] 32 | |=== 33 | |Name |Description |Type 34 | a| `isTlsEnabled` a| Specify whether the connection to TypeDB Server must be done over TLS. a| `boolean` 35 | a| `tlsRootCAPath` a| Path to the CA certificate to use for authenticating server certificates. a| `java.lang.String` 36 | |=== 37 | 38 | [caption=""] 39 | .Returns 40 | `public` 41 | 42 | // end::methods[] 43 | 44 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/java/errors/TypeDBDriverException.adoc: -------------------------------------------------------------------------------- 1 | [#_TypeDBDriverException] 2 | === TypeDBDriverException 3 | 4 | *Package*: `com.typedb.driver.common.exception` 5 | 6 | Exceptions raised by the driver. 7 | 8 | // tag::methods[] 9 | [#_TypeDBDriverException_getErrorMessage_] 10 | ==== getErrorMessage 11 | 12 | [source,java] 13 | ---- 14 | @Nullable 15 | public com.typedb.driver.common.exception.ErrorMessage getErrorMessage() 16 | ---- 17 | 18 | 19 | 20 | [caption=""] 21 | .Returns 22 | `public com.typedb.driver.common.exception.ErrorMessage` 23 | 24 | [#_TypeDBDriverException_getName_] 25 | ==== getName 26 | 27 | [source,java] 28 | ---- 29 | public java.lang.String getName() 30 | ---- 31 | 32 | 33 | 34 | [caption=""] 35 | .Returns 36 | `public java.lang.String` 37 | 38 | // end::methods[] 39 | 40 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/nodejs/answer/ConceptMapGroup.adoc: -------------------------------------------------------------------------------- 1 | [#_ConceptMapGroup] 2 | === ConceptMapGroup 3 | 4 | Contains an element of the group query result. 5 | 6 | [caption=""] 7 | .Fields 8 | // tag::properties[] 9 | [cols=",,"] 10 | [options="header"] 11 | |=== 12 | |Name |Type |Description 13 | a| `conceptMaps` a| `ConceptMap` a| The ConceptMaps of the group. 14 | a| `owner` a| `Concept` a| The concept that is the group owner. 15 | |=== 16 | // end::properties[] 17 | 18 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/nodejs/answer/Explainable.adoc: -------------------------------------------------------------------------------- 1 | [#_Explainable] 2 | === Explainable 3 | 4 | Contains an explainable object. 5 | 6 | [caption=""] 7 | .Fields 8 | // tag::properties[] 9 | [cols=",,"] 10 | [options="header"] 11 | |=== 12 | |Name |Type |Description 13 | a| `conjunction` a| `string` a| The subquery of the original query that is actually being explained. 14 | a| `id` a| `number` a| A unique ID that identifies this Explainable. 15 | |=== 16 | // end::properties[] 17 | 18 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/nodejs/answer/Explanation.adoc: -------------------------------------------------------------------------------- 1 | [#_Explanation] 2 | === Explanation 3 | 4 | An explanation of which rule was used for inferring the explained concept, the condition of the rule, the conclusion of the rule, and the mapping of variables between the query and the rule’s conclusion. 5 | 6 | [caption=""] 7 | .Fields 8 | // tag::properties[] 9 | [cols=",,"] 10 | [options="header"] 11 | |=== 12 | |Name |Type |Description 13 | a| `conclusion` a| `ConceptMap` a| The Conclusion for this Explanation. 14 | a| `condition` a| `ConceptMap` a| The Condition for this Explanation. 15 | a| `rule` a| `Rule` a| Retrieves the Rule for this Explanation. 16 | a| `variableMapping` a| `Map` a| Retrieves the query variables for this Explanation. 17 | |=== 18 | // end::properties[] 19 | 20 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/nodejs/answer/ValueGroup.adoc: -------------------------------------------------------------------------------- 1 | [#_ValueGroup] 2 | === ValueGroup 3 | 4 | Contains an element of the group aggregate query result. 5 | 6 | [caption=""] 7 | .Fields 8 | // tag::properties[] 9 | [cols=",,"] 10 | [options="header"] 11 | |=== 12 | |Name |Type |Description 13 | a| `owner` a| `Concept` a| Retrieves the concept that is the group owner. Examples valueGroup.owner 14 | Copy 15 | a| `value` a| `Value` a| Retrieves the Value answer of the group, if there is one. Examples valueGroup.value 16 | Copy 17 | |=== 18 | // end::properties[] 19 | 20 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/nodejs/connection/Replica.adoc: -------------------------------------------------------------------------------- 1 | [#_Replica] 2 | === Replica 3 | 4 | The metadata and state of an individual raft replica of a database. 5 | 6 | [caption=""] 7 | .Fields 8 | // tag::properties[] 9 | [cols=",,"] 10 | [options="header"] 11 | |=== 12 | |Name |Type |Description 13 | a| `databaseName` a| `string` a| The database for which this is a replica. 14 | a| `preferred` a| `boolean` a| Checks whether this is the preferred replica of the raft cluster. If true, Operations which can be run on any replica will prefer to use this replica. 15 | a| `primary` a| `boolean` a| Checks whether this is the primary replica of the raft cluster. 16 | a| `server` a| `string` a| The server hosting this replica 17 | a| `term` a| `number` a| The raft protocol ‘term’ of this replica. 18 | |=== 19 | // end::properties[] 20 | 21 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/nodejs/connection/User.adoc: -------------------------------------------------------------------------------- 1 | [#_User] 2 | === User 3 | 4 | ``User`` class 5 | 6 | [caption=""] 7 | .Fields 8 | // tag::properties[] 9 | [cols=",,"] 10 | [options="header"] 11 | |=== 12 | |Name |Type |Description 13 | a| `passwordExpirySeconds` a| `number` a| The number of seconds remaining till this user’s current password expires. 14 | a| `username` a| `string` a| The name of this user. 15 | |=== 16 | // end::properties[] 17 | 18 | // tag::methods[] 19 | [#_User_passwordUpdate_oldPassword_string_newPassword_string] 20 | ==== passwordUpdate 21 | 22 | [source,nodejs] 23 | ---- 24 | passwordUpdate(oldPassword, newPassword): Promise 25 | ---- 26 | 27 | Updates the user's password. 28 | 29 | [caption=""] 30 | .Input parameters 31 | [cols=",,"] 32 | [options="header"] 33 | |=== 34 | |Name |Description |Type 35 | a| `oldPassword` a| Old password a| `string` 36 | a| `newPassword` a| New password a| `string` 37 | |=== 38 | 39 | [caption=""] 40 | .Returns 41 | `Promise` 42 | 43 | [caption=""] 44 | .Code examples 45 | [source,nodejs] 46 | ---- 47 | user.passwordUpdate("oldpassword", "nEwp@ssw0rd"); 48 | ---- 49 | 50 | // end::methods[] 51 | 52 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/nodejs/schema/Annotation.adoc: -------------------------------------------------------------------------------- 1 | [#_Annotation] 2 | === Annotation 3 | 4 | Annotations for ownership declarations. 5 | 6 | [caption=""] 7 | .Fields 8 | // tag::properties[] 9 | [cols=",,"] 10 | [options="header"] 11 | |=== 12 | |Name |Type |Description 13 | a| `KEY` a| `Annotation` a| Annotation to specify the attribute owned is a KEY 14 | a| `UNIQUE` a| `Annotation` a| Annotation to specify the owned is UNIQUE 15 | |=== 16 | // end::properties[] 17 | 18 | // tag::methods[] 19 | [#_Annotation_parse_string_string] 20 | ==== parse 21 | 22 | [source,nodejs] 23 | ---- 24 | parse(string): Annotation 25 | ---- 26 | 27 | Returns the relevant ``Annotation`` given the name as a string 28 | 29 | [caption=""] 30 | .Input parameters 31 | [cols=",,"] 32 | [options="header"] 33 | |=== 34 | |Name |Description |Type 35 | a| `string` a| name of the attribute as a string. e.g.: "key", "unique" a| `string` 36 | |=== 37 | 38 | [caption=""] 39 | .Returns 40 | `Annotation` 41 | 42 | [#_Annotation_toString_] 43 | ==== toString 44 | 45 | [source,nodejs] 46 | ---- 47 | toString(): string 48 | ---- 49 | 50 | Printable string 51 | 52 | [caption=""] 53 | .Returns 54 | `string` 55 | 56 | // end::methods[] 57 | 58 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/nodejs/schema/Transitivity.adoc: -------------------------------------------------------------------------------- 1 | [#_Transitivity] 2 | === Transitivity 3 | 4 | [caption=""] 5 | .Namespace variables 6 | // tag::enum_constants[] 7 | [cols=""] 8 | [options="header"] 9 | |=== 10 | |Name 11 | a| `EXPLICIT` 12 | a| `TRANSITIVE` 13 | |=== 14 | // end::enum_constants[] 15 | 16 | // tag::methods[] 17 | [#_Transitivity_new_Transitivity_transitivity_TypeTransitivity] 18 | ==== new Transitivity 19 | 20 | [source,nodejs] 21 | ---- 22 | new Transitivity(transitivity): Transitivity 23 | ---- 24 | 25 | 26 | 27 | [caption=""] 28 | .Input parameters 29 | [cols=",,"] 30 | [options="header"] 31 | |=== 32 | |Name |Description |Type 33 | a| `transitivity` a| a| `TypeTransitivity` 34 | |=== 35 | 36 | [caption=""] 37 | .Returns 38 | `Transitivity` 39 | 40 | // end::methods[] 41 | 42 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/nodejs/session/SessionType.adoc: -------------------------------------------------------------------------------- 1 | [#_SessionType] 2 | === SessionType 3 | 4 | This class is used to specify the type of the session. 5 | 6 | [caption=""] 7 | .Namespace variables 8 | // tag::enum_constants[] 9 | [cols=""] 10 | [options="header"] 11 | |=== 12 | |Name 13 | a| `DATA` 14 | a| `SCHEMA` 15 | |=== 16 | // end::enum_constants[] 17 | 18 | // tag::methods[] 19 | [#_SessionType_isData_] 20 | ==== isData 21 | 22 | [source,nodejs] 23 | ---- 24 | isData(): boolean 25 | ---- 26 | 27 | 28 | 29 | [caption=""] 30 | .Returns 31 | `boolean` 32 | 33 | [#_SessionType_isSchema_] 34 | ==== isSchema 35 | 36 | [source,nodejs] 37 | ---- 38 | isSchema(): boolean 39 | ---- 40 | 41 | 42 | 43 | [caption=""] 44 | .Returns 45 | `boolean` 46 | 47 | // end::methods[] 48 | 49 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/nodejs/transaction/TransactionType.adoc: -------------------------------------------------------------------------------- 1 | [#_TransactionType] 2 | === TransactionType 3 | 4 | This class is used to specify the type of transaction. 5 | 6 | [caption=""] 7 | .Namespace variables 8 | // tag::enum_constants[] 9 | [cols=""] 10 | [options="header"] 11 | |=== 12 | |Name 13 | a| `READ` 14 | a| `WRITE` 15 | |=== 16 | // end::enum_constants[] 17 | 18 | // tag::methods[] 19 | [#_TransactionType_isRead_] 20 | ==== isRead 21 | 22 | [source,nodejs] 23 | ---- 24 | isRead(): boolean 25 | ---- 26 | 27 | Checks whether this is the READ TransactionType 28 | 29 | [caption=""] 30 | .Returns 31 | `boolean` 32 | 33 | [#_TransactionType_isWrite_] 34 | ==== isWrite 35 | 36 | [source,nodejs] 37 | ---- 38 | isWrite(): boolean 39 | ---- 40 | 41 | Checks whether this is the WRITE TransactionType 42 | 43 | [caption=""] 44 | .Returns 45 | `boolean` 46 | 47 | // end::methods[] 48 | 49 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/python/answer/ConceptDocumentIterator.adoc: -------------------------------------------------------------------------------- 1 | [#_ConceptDocumentIterator] 2 | === ConceptDocumentIterator 3 | 4 | *Supertypes:* 5 | 6 | * `QueryAnswer` 7 | 8 | Represents an iterator over ``ConceptRow``s returned as a server answer. 9 | 10 | // tag::methods[] 11 | [#_ConceptDocumentIterator_as_concept_documents_] 12 | ==== as_concept_documents 13 | 14 | [source,python] 15 | ---- 16 | as_concept_documents() -> ConceptDocumentIterator 17 | ---- 18 | 19 | Casts the query answer to ``ConceptDocumentIterator``. 20 | 21 | [caption=""] 22 | .Returns 23 | `ConceptDocumentIterator` 24 | 25 | [caption=""] 26 | .Code examples 27 | [source,python] 28 | ---- 29 | query_answer.as_concept_documents() 30 | ---- 31 | 32 | [#_ConceptDocumentIterator_is_concept_documents_] 33 | ==== is_concept_documents 34 | 35 | [source,python] 36 | ---- 37 | is_concept_documents() -> bool 38 | ---- 39 | 40 | Checks if the query answer is a ``ConceptDocumentIterator``. 41 | 42 | [caption=""] 43 | .Returns 44 | `bool` 45 | 46 | [caption=""] 47 | .Code examples 48 | [source,python] 49 | ---- 50 | query_answer.is_concept_documents() 51 | ---- 52 | 53 | // end::methods[] 54 | 55 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/python/answer/ConceptRowIterator.adoc: -------------------------------------------------------------------------------- 1 | [#_ConceptRowIterator] 2 | === ConceptRowIterator 3 | 4 | *Supertypes:* 5 | 6 | * `QueryAnswer` 7 | 8 | Represents an iterator over ``ConceptRow``s returned as a server answer. 9 | 10 | // tag::methods[] 11 | [#_ConceptRowIterator_as_concept_rows_] 12 | ==== as_concept_rows 13 | 14 | [source,python] 15 | ---- 16 | as_concept_rows() -> ConceptRowIterator 17 | ---- 18 | 19 | Casts the query answer to ``ConceptRowIterator``. 20 | 21 | [caption=""] 22 | .Returns 23 | `ConceptRowIterator` 24 | 25 | [caption=""] 26 | .Code examples 27 | [source,python] 28 | ---- 29 | query_answer.as_concept_rows() 30 | ---- 31 | 32 | [#_ConceptRowIterator_is_concept_rows_] 33 | ==== is_concept_rows 34 | 35 | [source,python] 36 | ---- 37 | is_concept_rows() -> bool 38 | ---- 39 | 40 | Checks if the query answer is a ``ConceptRowIterator``. 41 | 42 | [caption=""] 43 | .Returns 44 | `bool` 45 | 46 | [caption=""] 47 | .Code examples 48 | [source,python] 49 | ---- 50 | query_answer.is_concept_rows() 51 | ---- 52 | 53 | // end::methods[] 54 | 55 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/python/answer/OkQueryAnswer.adoc: -------------------------------------------------------------------------------- 1 | [#_OkQueryAnswer] 2 | === OkQueryAnswer 3 | 4 | *Supertypes:* 5 | 6 | * `QueryAnswer` 7 | 8 | Represents a simple Ok message as a server answer. Doesn’t contain concepts. 9 | 10 | // tag::methods[] 11 | [#_OkQueryAnswer_as_ok_] 12 | ==== as_ok 13 | 14 | [source,python] 15 | ---- 16 | as_ok() -> OkQueryAnswer 17 | ---- 18 | 19 | Casts the query answer to ``OkQueryAnswer``. 20 | 21 | [caption=""] 22 | .Returns 23 | `OkQueryAnswer` 24 | 25 | [caption=""] 26 | .Code examples 27 | [source,python] 28 | ---- 29 | query_answer.as_ok() 30 | ---- 31 | 32 | [#_OkQueryAnswer_is_ok_] 33 | ==== is_ok 34 | 35 | [source,python] 36 | ---- 37 | is_ok() -> bool 38 | ---- 39 | 40 | Checks if the query answer is an ``Ok``. 41 | 42 | [caption=""] 43 | .Returns 44 | `bool` 45 | 46 | [caption=""] 47 | .Code examples 48 | [source,python] 49 | ---- 50 | query_answer.is_ok() 51 | ---- 52 | 53 | // end::methods[] 54 | 55 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/python/answer/Promise.adoc: -------------------------------------------------------------------------------- 1 | [#_Promise] 2 | === Promise 3 | 4 | A ``Promise`` represents an asynchronous network operation. 5 | 6 | The request it represents is performed immediately. The response is only retrieved once the ``Promise`` is ``resolve``d. 7 | 8 | // tag::methods[] 9 | [#_Promise_map_] 10 | ==== map 11 | 12 | [source,python] 13 | ---- 14 | classmethod map(ctor: Callable[[U], T], raw: Callable[[], U]) -> Promise[T] 15 | ---- 16 | 17 | 18 | 19 | [caption=""] 20 | .Returns 21 | `Promise[T]` 22 | 23 | [#_Promise_resolve_] 24 | ==== resolve 25 | 26 | [source,python] 27 | ---- 28 | resolve() -> T 29 | ---- 30 | 31 | Retrieves the result of the Promise. 32 | 33 | [caption=""] 34 | .Returns 35 | `T` 36 | 37 | [caption=""] 38 | .Code examples 39 | [source,python] 40 | ---- 41 | promise.resolve() 42 | ---- 43 | 44 | // end::methods[] 45 | 46 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/python/answer/QueryType.adoc: -------------------------------------------------------------------------------- 1 | [#_QueryType] 2 | === QueryType 3 | 4 | Used to specify the type of the executed query. 5 | 6 | [caption=""] 7 | .Examples 8 | [source,python] 9 | ---- 10 | concept_row.query_type 11 | ---- 12 | 13 | [caption=""] 14 | .Enum constants 15 | // tag::enum_constants[] 16 | [cols=","] 17 | [options="header"] 18 | |=== 19 | |Name |Value 20 | a| `READ` a| `0` 21 | a| `SCHEMA` a| `2` 22 | a| `WRITE` a| `1` 23 | |=== 24 | // end::enum_constants[] 25 | 26 | // tag::methods[] 27 | [#_QueryType_is_read_] 28 | ==== is_read 29 | 30 | [source,python] 31 | ---- 32 | is_read() -> bool 33 | ---- 34 | 35 | 36 | 37 | [caption=""] 38 | .Returns 39 | `bool` 40 | 41 | [#_QueryType_is_schema_] 42 | ==== is_schema 43 | 44 | [source,python] 45 | ---- 46 | is_schema() -> bool 47 | ---- 48 | 49 | 50 | 51 | [caption=""] 52 | .Returns 53 | `bool` 54 | 55 | [#_QueryType_is_write_] 56 | ==== is_write 57 | 58 | [source,python] 59 | ---- 60 | is_write() -> bool 61 | ---- 62 | 63 | 64 | 65 | [caption=""] 66 | .Returns 67 | `bool` 68 | 69 | // end::methods[] 70 | 71 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/python/connection/Credentials.adoc: -------------------------------------------------------------------------------- 1 | [#_Credentials] 2 | === Credentials 3 | 4 | User credentials and TLS encryption settings for connecting to TypeDB Server. 5 | 6 | [caption=""] 7 | .Examples 8 | [source,python] 9 | ---- 10 | credentials = Credentials(username, password) 11 | ---- 12 | 13 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/python/connection/DriverOptions.adoc: -------------------------------------------------------------------------------- 1 | [#_DriverOptions] 2 | === DriverOptions 3 | 4 | User credentials and TLS encryption settings for connecting to TypeDB Server. Arguments: 1) is_tls_enabled: Specify whether the connection to TypeDB Cloud must be done over TLS. 2) tls_root_ca_path: Path to the CA certificate to use for authenticating server certificates. 5 | 6 | [caption=""] 7 | .Examples 8 | [source,python] 9 | ---- 10 | driver_options = DriverOptions(tls_enabled=True, tls_root_ca_path="path/to/ca-certificate.pem") 11 | ---- 12 | 13 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/python/connection/TypeDB.adoc: -------------------------------------------------------------------------------- 1 | [#_TypeDB] 2 | === TypeDB 3 | 4 | // tag::methods[] 5 | [#_TypeDB_driver_address_str_credentials_Credentials_driver_options_DriverOptions] 6 | ==== driver 7 | 8 | [source,python] 9 | ---- 10 | static driver(address: str, credentials: Credentials, driver_options: DriverOptions) -> Driver 11 | ---- 12 | 13 | Creates a connection to TypeDB. 14 | 15 | [caption=""] 16 | .Input parameters 17 | [cols=",,,"] 18 | [options="header"] 19 | |=== 20 | |Name |Description |Type |Default Value 21 | a| `address` a| Address of the TypeDB server. a| `str` a| 22 | a| `credentials` a| The credentials to connect with. a| `Credentials` a| 23 | a| `driver_options` a| The connection settings to connect with. a| `DriverOptions` a| 24 | |=== 25 | 26 | [caption=""] 27 | .Returns 28 | `Driver` 29 | 30 | // end::methods[] 31 | 32 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/python/data/Instance.adoc: -------------------------------------------------------------------------------- 1 | [#_Instance] 2 | === Instance 3 | 4 | *Supertypes:* 5 | 6 | * `Concept` 7 | 8 | // tag::methods[] 9 | [#_Instance_as_instance_] 10 | ==== as_instance 11 | 12 | [source,python] 13 | ---- 14 | as_instance() -> Instance 15 | ---- 16 | 17 | Casts the concept to ``Instance``. 18 | 19 | [caption=""] 20 | .Returns 21 | `Instance` 22 | 23 | [caption=""] 24 | .Code examples 25 | [source,python] 26 | ---- 27 | instance.as_instance() 28 | ---- 29 | 30 | [#_Instance_get_type_] 31 | ==== get_type 32 | 33 | [source,python] 34 | ---- 35 | get_type() -> Type 36 | ---- 37 | 38 | Retrieves the type which this ``Instance`` belongs to. 39 | 40 | [caption=""] 41 | .Returns 42 | `Type` 43 | 44 | [caption=""] 45 | .Code examples 46 | [source,python] 47 | ---- 48 | instance.get_type() 49 | ---- 50 | 51 | [#_Instance_is_instance_] 52 | ==== is_instance 53 | 54 | [source,python] 55 | ---- 56 | is_instance() -> bool 57 | ---- 58 | 59 | Checks if the concept is a ``Instance``. 60 | 61 | [caption=""] 62 | .Returns 63 | `bool` 64 | 65 | [caption=""] 66 | .Code examples 67 | [source,python] 68 | ---- 69 | instance.is_instance() 70 | ---- 71 | 72 | // end::methods[] 73 | 74 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/python/errors/TypeDBDriverException.adoc: -------------------------------------------------------------------------------- 1 | [#_TypeDBDriverException] 2 | === TypeDBDriverException 3 | 4 | *Supertypes:* 5 | 6 | * `RuntimeError` 7 | 8 | Exceptions raised by the driver. 9 | 10 | [caption=""] 11 | .Examples 12 | [source,python] 13 | ---- 14 | try: 15 | transaction.commit() 16 | except TypeDBDriverException as err: 17 | print("Error:", err) 18 | ---- 19 | 20 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/python/schema/EntityType.adoc: -------------------------------------------------------------------------------- 1 | [#_EntityType] 2 | === EntityType 3 | 4 | *Supertypes:* 5 | 6 | * `Type` 7 | 8 | Entity types represent the classification of independent objects in the data model of the business domain. 9 | 10 | // tag::methods[] 11 | [#_EntityType_as_entity_type_] 12 | ==== as_entity_type 13 | 14 | [source,python] 15 | ---- 16 | as_entity_type() -> EntityType 17 | ---- 18 | 19 | Casts the concept to ``EntityType``. 20 | 21 | [caption=""] 22 | .Returns 23 | `EntityType` 24 | 25 | [caption=""] 26 | .Code examples 27 | [source,python] 28 | ---- 29 | entity_type.as_entity_type() 30 | ---- 31 | 32 | [#_EntityType_is_entity_type_] 33 | ==== is_entity_type 34 | 35 | [source,python] 36 | ---- 37 | is_entity_type() -> bool 38 | ---- 39 | 40 | Checks if the concept is an ``EntityType``. 41 | 42 | [caption=""] 43 | .Returns 44 | `bool` 45 | 46 | [caption=""] 47 | .Code examples 48 | [source,python] 49 | ---- 50 | entity_type.is_entity_type() 51 | ---- 52 | 53 | // end::methods[] 54 | 55 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/python/schema/RelationType.adoc: -------------------------------------------------------------------------------- 1 | [#_RelationType] 2 | === RelationType 3 | 4 | *Supertypes:* 5 | 6 | * `Type` 7 | 8 | Relation types (or subtypes of the relation root type) represent relationships between types. Relation types have roles. 9 | 10 | Other types can play roles in relations if it’s mentioned in their definition. 11 | 12 | A relation type must specify at least one role. 13 | 14 | // tag::methods[] 15 | [#_RelationType_as_relation_type_] 16 | ==== as_relation_type 17 | 18 | [source,python] 19 | ---- 20 | as_relation_type() -> RelationType 21 | ---- 22 | 23 | Casts the concept to ``RelationType``. 24 | 25 | [caption=""] 26 | .Returns 27 | `RelationType` 28 | 29 | [caption=""] 30 | .Code examples 31 | [source,python] 32 | ---- 33 | relation_type.as_relation_type() 34 | ---- 35 | 36 | [#_RelationType_is_relation_type_] 37 | ==== is_relation_type 38 | 39 | [source,python] 40 | ---- 41 | is_relation_type() -> bool 42 | ---- 43 | 44 | Checks if the concept is a ``RelationType``. 45 | 46 | [caption=""] 47 | .Returns 48 | `bool` 49 | 50 | [caption=""] 51 | .Code examples 52 | [source,python] 53 | ---- 54 | relation_type.is_relation_type() 55 | ---- 56 | 57 | // end::methods[] 58 | 59 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/python/schema/RoleType.adoc: -------------------------------------------------------------------------------- 1 | [#_RoleType] 2 | === RoleType 3 | 4 | *Supertypes:* 5 | 6 | * `Type` 7 | 8 | Roles are special internal types used by relations. We can not create an instance of a role in a database. But we can set an instance of another type (role player) to play a role in a particular instance of a relation type. 9 | 10 | Roles allow a schema to enforce logical constraints on types of role players. 11 | 12 | // tag::methods[] 13 | [#_RoleType_as_role_type_] 14 | ==== as_role_type 15 | 16 | [source,python] 17 | ---- 18 | as_role_type() -> RoleType 19 | ---- 20 | 21 | Casts the concept to ``RoleType``. 22 | 23 | [caption=""] 24 | .Returns 25 | `RoleType` 26 | 27 | [caption=""] 28 | .Code examples 29 | [source,python] 30 | ---- 31 | role_type.as_role_type() 32 | ---- 33 | 34 | [#_RoleType_is_role_type_] 35 | ==== is_role_type 36 | 37 | [source,python] 38 | ---- 39 | is_role_type() -> bool 40 | ---- 41 | 42 | Checks if the concept is a ``RoleType``. 43 | 44 | [caption=""] 45 | .Returns 46 | `bool` 47 | 48 | [caption=""] 49 | .Code examples 50 | [source,python] 51 | ---- 52 | role_type.is_role_type() 53 | ---- 54 | 55 | // end::methods[] 56 | 57 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/python/schema/Type.adoc: -------------------------------------------------------------------------------- 1 | [#_Type] 2 | === Type 3 | 4 | *Supertypes:* 5 | 6 | * `Concept` 7 | 8 | // tag::methods[] 9 | [#_Type_is_type_] 10 | ==== is_type 11 | 12 | [source,python] 13 | ---- 14 | is_type() -> bool 15 | ---- 16 | 17 | Checks if the concept is a ``Type``. 18 | 19 | [caption=""] 20 | .Returns 21 | `bool` 22 | 23 | [caption=""] 24 | .Code examples 25 | [source,python] 26 | ---- 27 | type_.is_type() 28 | ---- 29 | 30 | // end::methods[] 31 | 32 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/python/transaction/QueryOptions.adoc: -------------------------------------------------------------------------------- 1 | [#_QueryOptions] 2 | === QueryOptions 3 | 4 | TypeDB transaction options. ``QueryOptions`` object can be used to override the default server behaviour for executed queries. 5 | 6 | Options could be specified either as constructor arguments or using properties assignment. 7 | 8 | [caption=""] 9 | .Examples 10 | [source,python] 11 | ---- 12 | query_options = QueryOptions(include_instance_types=True) 13 | query_options.include_instance_types = False 14 | ---- 15 | 16 | [caption=""] 17 | .Properties 18 | // tag::properties[] 19 | [cols=",,"] 20 | [options="header"] 21 | |=== 22 | |Name |Type |Description 23 | a| `include_instance_types` a| `bool \| None` a| If set, specifies if types should be included in instance structs returned in ConceptRow answers. This option allows reducing the amount of unnecessary data transmitted. 24 | |=== 25 | // end::properties[] 26 | 27 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/python/transaction/TransactionOptions.adoc: -------------------------------------------------------------------------------- 1 | [#_TransactionOptions] 2 | === TransactionOptions 3 | 4 | TypeDB transaction options. ``TransactionOptions`` object can be used to override the default server behaviour for opened transactions. 5 | 6 | Options could be specified either as constructor arguments or using properties assignment. 7 | 8 | [caption=""] 9 | .Examples 10 | [source,python] 11 | ---- 12 | transaction_options = TransactionOptions(transaction_timeout_millis=20_000) 13 | transaction_options.schema_lock_acquire_timeout_millis = 50_000 14 | ---- 15 | 16 | [caption=""] 17 | .Properties 18 | // tag::properties[] 19 | [cols=",,"] 20 | [options="header"] 21 | |=== 22 | |Name |Type |Description 23 | a| `schema_lock_acquire_timeout_millis` a| `int \| None` a| If set, specifies how long the driver should wait if opening a transaction is blocked by a schema write lock. 24 | a| `transaction_timeout_millis` a| `int \| None` a| If set, specifies a timeout for killing transactions automatically, preventing memory leaks in unclosed transactions. 25 | |=== 26 | // end::properties[] 27 | 28 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/python/transaction/TransactionType.adoc: -------------------------------------------------------------------------------- 1 | [#_TransactionType] 2 | === TransactionType 3 | 4 | This class is used to specify the type of transaction. 5 | 6 | [caption=""] 7 | .Examples 8 | [source,python] 9 | ---- 10 | driver.transaction(database, TransactionType.READ) 11 | ---- 12 | 13 | [caption=""] 14 | .Enum constants 15 | // tag::enum_constants[] 16 | [cols=","] 17 | [options="header"] 18 | |=== 19 | |Name |Value 20 | a| `READ` a| `0` 21 | a| `SCHEMA` a| `2` 22 | a| `WRITE` a| `1` 23 | |=== 24 | // end::enum_constants[] 25 | 26 | // tag::methods[] 27 | [#_TransactionType_is_read_] 28 | ==== is_read 29 | 30 | [source,python] 31 | ---- 32 | is_read() -> bool 33 | ---- 34 | 35 | 36 | 37 | [caption=""] 38 | .Returns 39 | `bool` 40 | 41 | [#_TransactionType_is_schema_] 42 | ==== is_schema 43 | 44 | [source,python] 45 | ---- 46 | is_schema() -> bool 47 | ---- 48 | 49 | 50 | 51 | [caption=""] 52 | .Returns 53 | `bool` 54 | 55 | [#_TransactionType_is_write_] 56 | ==== is_write 57 | 58 | [source,python] 59 | ---- 60 | is_write() -> bool 61 | ---- 62 | 63 | 64 | 65 | [caption=""] 66 | .Returns 67 | `bool` 68 | 69 | // end::methods[] 70 | 71 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/answer/ConceptDocument.adoc: -------------------------------------------------------------------------------- 1 | [#_struct_ConceptDocument] 2 | === ConceptDocument 3 | 4 | *Implements traits:* 5 | 6 | * `Clone` 7 | * `Debug` 8 | * `PartialEq` 9 | * `StructuralPartialEq` 10 | 11 | A single document of concepts representing substitutions for variables in the query. Contains a Header (query type), and the document of concepts. 12 | 13 | [caption=""] 14 | .Fields 15 | // tag::properties[] 16 | [cols=",,"] 17 | [options="header"] 18 | |=== 19 | |Name |Type |Description 20 | a| `root` a| `Option` a| 21 | |=== 22 | // end::properties[] 23 | 24 | // tag::methods[] 25 | [#_struct_ConceptDocument_get_query_type_] 26 | ==== get_query_type 27 | 28 | [source,rust] 29 | ---- 30 | pub fn get_query_type(&self) -> QueryType 31 | ---- 32 | 33 | Retrieve the executed query’s type (shared by all elements in this stream). 34 | 35 | [caption=""] 36 | .Returns 37 | [source,rust] 38 | ---- 39 | QueryType 40 | ---- 41 | 42 | [caption=""] 43 | .Code examples 44 | [source,rust] 45 | ---- 46 | concept_document.get_query_type() 47 | ---- 48 | 49 | // end::methods[] 50 | 51 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/answer/ConceptDocumentHeader.adoc: -------------------------------------------------------------------------------- 1 | [#_struct_ConceptDocumentHeader] 2 | === ConceptDocumentHeader 3 | 4 | *Implements traits:* 5 | 6 | * `Debug` 7 | * `PartialEq` 8 | * `StructuralPartialEq` 9 | 10 | [caption=""] 11 | .Fields 12 | // tag::properties[] 13 | [cols=",,"] 14 | [options="header"] 15 | |=== 16 | |Name |Type |Description 17 | a| `query_type` a| `QueryType` a| 18 | |=== 19 | // end::properties[] 20 | 21 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/answer/ConceptRowHeader.adoc: -------------------------------------------------------------------------------- 1 | [#_struct_ConceptRowHeader] 2 | === ConceptRowHeader 3 | 4 | *Implements traits:* 5 | 6 | * `Debug` 7 | * `PartialEq` 8 | * `StructuralPartialEq` 9 | 10 | [caption=""] 11 | .Fields 12 | // tag::properties[] 13 | [cols=",,"] 14 | [options="header"] 15 | |=== 16 | |Name |Type |Description 17 | a| `column_names` a| `Vec` a| 18 | a| `query_type` a| `QueryType` a| 19 | |=== 20 | // end::properties[] 21 | 22 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/answer/JSON.adoc: -------------------------------------------------------------------------------- 1 | [#_enum_JSON] 2 | === JSON 3 | 4 | [caption=""] 5 | .Enum variants 6 | // tag::enum_constants[] 7 | [cols=""] 8 | [options="header"] 9 | |=== 10 | |Variant 11 | a| `Array(Vec)` 12 | a| `Boolean(bool)` 13 | a| `Null` 14 | a| `Number(f64)` 15 | a| `Object(HashMap, JSON>)` 16 | a| `String(Cow<'static, str>)` 17 | |=== 18 | // end::enum_constants[] 19 | 20 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/answer/Leaf.adoc: -------------------------------------------------------------------------------- 1 | [#_enum_Leaf] 2 | === Leaf 3 | 4 | [caption=""] 5 | .Enum variants 6 | // tag::enum_constants[] 7 | [cols=""] 8 | [options="header"] 9 | |=== 10 | |Variant 11 | a| `Concept(Concept)` 12 | a| `Empty` 13 | a| `Kind(Kind)` 14 | a| `ValueType(ValueType)` 15 | |=== 16 | // end::enum_constants[] 17 | 18 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/answer/Node.adoc: -------------------------------------------------------------------------------- 1 | [#_enum_Node] 2 | === Node 3 | 4 | [caption=""] 5 | .Enum variants 6 | // tag::enum_constants[] 7 | [cols=""] 8 | [options="header"] 9 | |=== 10 | |Variant 11 | a| `Leaf(Option)` 12 | a| `List(Vec)` 13 | a| `Map(HashMap)` 14 | |=== 15 | // end::enum_constants[] 16 | 17 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/answer/QueryType.adoc: -------------------------------------------------------------------------------- 1 | [#_enum_QueryType] 2 | === QueryType 3 | 4 | This enum is used to specify the type of the query resulted in this answer. 5 | 6 | [caption=""] 7 | .Enum variants 8 | // tag::enum_constants[] 9 | [cols=""] 10 | [options="header"] 11 | |=== 12 | |Variant 13 | a| `ReadQuery = 0` 14 | a| `SchemaQuery = 2` 15 | a| `WriteQuery = 1` 16 | |=== 17 | // end::enum_constants[] 18 | 19 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/answer/Trait_Promise.adoc: -------------------------------------------------------------------------------- 1 | [#_trait_Promise] 2 | === Trait Promise 3 | 4 | [tabs] 5 | ==== 6 | async:: 7 | + 8 | -- 9 | Async promise, an alias for Rust’s built-in Future. A ``BoxPromise`` is an alias for Rust’s built-in BoxFuture. 10 | 11 | [caption=""] 12 | .Examples 13 | [source,rust] 14 | ---- 15 | promise.await 16 | ---- 17 | 18 | -- 19 | 20 | sync:: 21 | + 22 | -- 23 | A resolvable promise that can be resolved at a later time. a ``BoxPromise`` is in practical terms a ``Box<dyn Promise>`` and resolves with ``.resolve()``. 24 | 25 | [caption=""] 26 | .Examples 27 | [source,rust] 28 | ---- 29 | promise.resolve() 30 | ---- 31 | 32 | -- 33 | ==== 34 | 35 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/concept/ConceptCategory.adoc: -------------------------------------------------------------------------------- 1 | [#_enum_ConceptCategory] 2 | === ConceptCategory 3 | 4 | [caption=""] 5 | .Enum variants 6 | // tag::enum_constants[] 7 | [cols=""] 8 | [options="header"] 9 | |=== 10 | |Variant 11 | a| `Attribute` 12 | a| `AttributeType` 13 | a| `Entity` 14 | a| `EntityType` 15 | a| `Relation` 16 | a| `RelationType` 17 | a| `RoleType` 18 | a| `Value` 19 | |=== 20 | // end::enum_constants[] 21 | 22 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/concept/Kind.adoc: -------------------------------------------------------------------------------- 1 | [#_enum_Kind] 2 | === Kind 3 | 4 | Kind represents the base of a defined type to describe its capabilities. For example, “define entity person;” defines a type “person” of a kind “entity”. 5 | 6 | [caption=""] 7 | .Enum variants 8 | // tag::enum_constants[] 9 | [cols=""] 10 | [options="header"] 11 | |=== 12 | |Variant 13 | a| `Attribute` 14 | a| `Entity` 15 | a| `Relation` 16 | a| `Role` 17 | |=== 18 | // end::enum_constants[] 19 | 20 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/connection/ReplicaInfo.adoc: -------------------------------------------------------------------------------- 1 | [#_struct_ReplicaInfo] 2 | === ReplicaInfo 3 | 4 | *Implements traits:* 5 | 6 | * `Debug` 7 | 8 | The metadata and state of an individual raft replica of a database. 9 | 10 | [caption=""] 11 | .Fields 12 | // tag::properties[] 13 | [cols=",,"] 14 | [options="header"] 15 | |=== 16 | |Name |Type |Description 17 | a| `is_preferred` a| `bool` a| Whether this is the preferred replica of the raft cluster. If true, Operations which can be run on any replica will prefer to use this replica. 18 | a| `is_primary` a| `bool` a| Whether this is the primary replica of the raft cluster. 19 | a| `server` a| `Address` a| The server hosting this replica 20 | a| `term` a| `i64` a| The raft protocol ‘term’ of this replica. 21 | |=== 22 | // end::properties[] 23 | 24 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/data/Attribute.adoc: -------------------------------------------------------------------------------- 1 | [#_struct_Attribute] 2 | === Attribute 3 | 4 | *Implements traits:* 5 | 6 | * `Clone` 7 | * `Debug` 8 | * `PartialEq` 9 | * `StructuralPartialEq` 10 | 11 | Attribute is an instance of the attribute type and has a value. This value is fixed and unique for every given instance of the attribute type. Attributes can be uniquely addressed by their type and value. 12 | 13 | [caption=""] 14 | .Fields 15 | // tag::properties[] 16 | [cols=",,"] 17 | [options="header"] 18 | |=== 19 | |Name |Type |Description 20 | a| `iid` a| `IID` a| The unique id of this Attribute (internal use only) 21 | a| `type_` a| `Option` a| The type which this Attribute belongs to 22 | a| `value` a| `Value` a| The (dataful) value of this attribute 23 | |=== 24 | // end::properties[] 25 | 26 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/data/Entity.adoc: -------------------------------------------------------------------------------- 1 | [#_struct_Entity] 2 | === Entity 3 | 4 | *Implements traits:* 5 | 6 | * `Clone` 7 | * `Debug` 8 | * `Eq` 9 | * `PartialEq` 10 | * `StructuralPartialEq` 11 | 12 | Instance of data of an entity type, representing a standalone object that exists in the data model independently. Entity does not have a value. It is usually addressed by its ownership over attribute instances and/or roles played in relation instances. 13 | 14 | [caption=""] 15 | .Fields 16 | // tag::properties[] 17 | [cols=",,"] 18 | [options="header"] 19 | |=== 20 | |Name |Type |Description 21 | a| `iid` a| `IID` a| The unique id of this Entity 22 | a| `type_` a| `Option` a| The type which this Entity belongs to 23 | |=== 24 | // end::properties[] 25 | 26 | // tag::methods[] 27 | [#_struct_Entity_iid_] 28 | ==== iid 29 | 30 | [source,rust] 31 | ---- 32 | pub fn iid(&self) -> &IID 33 | ---- 34 | 35 | Retrieves the unique id of the ``Entity``. 36 | 37 | [caption=""] 38 | .Returns 39 | [source,rust] 40 | ---- 41 | &IID 42 | ---- 43 | 44 | [caption=""] 45 | .Code examples 46 | [source,rust] 47 | ---- 48 | entity.iid(); 49 | ---- 50 | 51 | // end::methods[] 52 | 53 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/data/Relation.adoc: -------------------------------------------------------------------------------- 1 | [#_struct_Relation] 2 | === Relation 3 | 4 | *Implements traits:* 5 | 6 | * `Clone` 7 | * `Debug` 8 | * `Eq` 9 | * `PartialEq` 10 | * `StructuralPartialEq` 11 | 12 | Relation is an instance of a relation type and can be uniquely addressed by a combination of its type, owned attributes and role players. 13 | 14 | [caption=""] 15 | .Fields 16 | // tag::properties[] 17 | [cols=",,"] 18 | [options="header"] 19 | |=== 20 | |Name |Type |Description 21 | a| `iid` a| `IID` a| The unique id of this Relation 22 | a| `type_` a| `Option` a| The type which this Relation belongs to 23 | |=== 24 | // end::properties[] 25 | 26 | // tag::methods[] 27 | [#_struct_Relation_iid_] 28 | ==== iid 29 | 30 | [source,rust] 31 | ---- 32 | pub fn iid(&self) -> &IID 33 | ---- 34 | 35 | Retrieves the unique id of the ``Relation``. 36 | 37 | [caption=""] 38 | .Returns 39 | [source,rust] 40 | ---- 41 | &IID 42 | ---- 43 | 44 | [caption=""] 45 | .Code examples 46 | [source,rust] 47 | ---- 48 | relation.iid(); 49 | ---- 50 | 51 | // end::methods[] 52 | 53 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/errors/ConceptError.adoc: -------------------------------------------------------------------------------- 1 | [#_enum_ConceptError] 2 | === ConceptError 3 | 4 | [caption=""] 5 | .Enum variants 6 | // tag::enum_constants[] 7 | [cols=""] 8 | [options="header"] 9 | |=== 10 | |Variant 11 | a| `UnavailableRowIndex` 12 | a| `UnavailableRowVariable` 13 | |=== 14 | // end::enum_constants[] 15 | 16 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/errors/ConnectionError.adoc: -------------------------------------------------------------------------------- 1 | [#_enum_ConnectionError] 2 | === ConnectionError 3 | 4 | [caption=""] 5 | .Enum variants 6 | // tag::enum_constants[] 7 | [cols=""] 8 | [options="header"] 9 | |=== 10 | |Variant 11 | a| `AddressTranslationMismatch` 12 | a| `BrokenPipe` 13 | a| `ClusterAllNodesFailed` 14 | a| `ClusterReplicaNotPrimary` 15 | a| `ConnectionFailed` 16 | a| `DatabaseNotFound` 17 | a| `EncryptionSettingsMismatch` 18 | a| `InvalidResponseField` 19 | a| `ListsNotImplemented` 20 | a| `MissingPort` 21 | a| `MissingResponseField` 22 | a| `QueryStreamNoResponse` 23 | a| `RPCMethodUnavailable` 24 | a| `SSLCertificateNotValidated` 25 | a| `ServerConnectionFailed` 26 | a| `ServerConnectionFailedStatusError` 27 | a| `ServerConnectionFailedWithError` 28 | a| `ServerConnectionIsClosed` 29 | a| `TokenCredentialInvalid` 30 | a| `TransactionIsClosed` 31 | a| `TransactionIsClosedWithErrors` 32 | a| `UnexpectedConnectionClose` 33 | a| `UnexpectedKind` 34 | a| `UnexpectedQueryType` 35 | a| `UnexpectedResponse` 36 | a| `UnknownRequestId` 37 | a| `ValueStructNotImplemented` 38 | a| `ValueTimeZoneNameNotRecognised` 39 | a| `ValueTimeZoneOffsetNotRecognised` 40 | |=== 41 | // end::enum_constants[] 42 | 43 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/errors/DurationParseError.adoc: -------------------------------------------------------------------------------- 1 | [#_struct_DurationParseError] 2 | === DurationParseError 3 | 4 | *Implements traits:* 5 | 6 | * `Debug` 7 | 8 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/errors/Error.adoc: -------------------------------------------------------------------------------- 1 | [#_enum_Error] 2 | === Error 3 | 4 | Represents errors encountered during operation. 5 | 6 | [caption=""] 7 | .Enum variants 8 | // tag::enum_constants[] 9 | [cols=""] 10 | [options="header"] 11 | |=== 12 | |Variant 13 | a| `Concept(ConceptError)` 14 | a| `Connection(ConnectionError)` 15 | a| `Internal(InternalError)` 16 | a| `Other(String)` 17 | a| `Server(ServerError)` 18 | |=== 19 | // end::enum_constants[] 20 | 21 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/errors/InternalError.adoc: -------------------------------------------------------------------------------- 1 | [#_enum_InternalError] 2 | === InternalError 3 | 4 | [caption=""] 5 | .Enum variants 6 | // tag::enum_constants[] 7 | [cols=""] 8 | [options="header"] 9 | |=== 10 | |Variant 11 | a| `EnumOutOfBounds` 12 | a| `RecvError` 13 | a| `SendError` 14 | a| `UnexpectedRequestType` 15 | a| `UnexpectedResponseType` 16 | a| `UnknownServer` 17 | |=== 18 | // end::enum_constants[] 19 | 20 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/errors/ServerError.adoc: -------------------------------------------------------------------------------- 1 | [#_struct_ServerError] 2 | === ServerError 3 | 4 | *Implements traits:* 5 | 6 | * `Clone` 7 | * `Debug` 8 | * `Display` 9 | * `Eq` 10 | * `From` 11 | * `PartialEq` 12 | * `StructuralPartialEq` 13 | 14 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/schema/EntityType.adoc: -------------------------------------------------------------------------------- 1 | [#_struct_EntityType] 2 | === EntityType 3 | 4 | *Implements traits:* 5 | 6 | * `Clone` 7 | * `Debug` 8 | * `Display` 9 | * `Eq` 10 | * `PartialEq` 11 | * `StructuralPartialEq` 12 | 13 | Entity types represent the classification of independent objects in the data model of the business domain. 14 | 15 | [caption=""] 16 | .Fields 17 | // tag::properties[] 18 | [cols=",,"] 19 | [options="header"] 20 | |=== 21 | |Name |Type |Description 22 | a| `label` a| `String` a| 23 | |=== 24 | // end::properties[] 25 | 26 | // tag::methods[] 27 | [#_struct_EntityType_label_] 28 | ==== label 29 | 30 | [source,rust] 31 | ---- 32 | pub fn label(&self) -> &str 33 | ---- 34 | 35 | Retrieves the unique label of the ``EntityType``. 36 | 37 | [caption=""] 38 | .Returns 39 | [source,rust] 40 | ---- 41 | &str 42 | ---- 43 | 44 | [caption=""] 45 | .Code examples 46 | [source,rust] 47 | ---- 48 | entity_type.label() 49 | ---- 50 | 51 | // end::methods[] 52 | 53 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/schema/RelationType.adoc: -------------------------------------------------------------------------------- 1 | [#_struct_RelationType] 2 | === RelationType 3 | 4 | *Implements traits:* 5 | 6 | * `Clone` 7 | * `Debug` 8 | * `Display` 9 | * `Eq` 10 | * `PartialEq` 11 | * `StructuralPartialEq` 12 | 13 | Relation types (or subtypes of the relation root type) represent relationships between types. Relation types have roles. 14 | 15 | Other types can play roles in relations if it’s mentioned in their definition. 16 | 17 | A relation type must specify at least one role. 18 | 19 | [caption=""] 20 | .Fields 21 | // tag::properties[] 22 | [cols=",,"] 23 | [options="header"] 24 | |=== 25 | |Name |Type |Description 26 | a| `label` a| `String` a| 27 | |=== 28 | // end::properties[] 29 | 30 | // tag::methods[] 31 | [#_struct_RelationType_label_] 32 | ==== label 33 | 34 | [source,rust] 35 | ---- 36 | pub fn label(&self) -> &str 37 | ---- 38 | 39 | Retrieves the unique label of the ``RelationType``. 40 | 41 | [caption=""] 42 | .Returns 43 | [source,rust] 44 | ---- 45 | &str 46 | ---- 47 | 48 | [caption=""] 49 | .Code examples 50 | [source,rust] 51 | ---- 52 | relation_type.label() 53 | ---- 54 | 55 | // end::methods[] 56 | 57 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/schema/RoleType.adoc: -------------------------------------------------------------------------------- 1 | [#_struct_RoleType] 2 | === RoleType 3 | 4 | *Implements traits:* 5 | 6 | * `Clone` 7 | * `Debug` 8 | * `Display` 9 | * `Eq` 10 | * `PartialEq` 11 | * `StructuralPartialEq` 12 | 13 | Roles are special internal types used by relations. We can not create an instance of a role in a database. But we can set an instance of another type (role player) to play a role in a particular instance of a relation type. 14 | 15 | Roles allow a schema to enforce logical constraints on types of role players. 16 | 17 | [caption=""] 18 | .Fields 19 | // tag::properties[] 20 | [cols=",,"] 21 | [options="header"] 22 | |=== 23 | |Name |Type |Description 24 | a| `label` a| `String` a| 25 | |=== 26 | // end::properties[] 27 | 28 | // tag::methods[] 29 | [#_struct_RoleType_label_] 30 | ==== label 31 | 32 | [source,rust] 33 | ---- 34 | pub fn label(&self) -> &str 35 | ---- 36 | 37 | Retrieves the unique label of the ``RoleType``. 38 | 39 | [caption=""] 40 | .Returns 41 | [source,rust] 42 | ---- 43 | &str 44 | ---- 45 | 46 | [caption=""] 47 | .Code examples 48 | [source,rust] 49 | ---- 50 | role_type.label() 51 | ---- 52 | 53 | // end::methods[] 54 | 55 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/schema/ValueType.adoc: -------------------------------------------------------------------------------- 1 | [#_enum_ValueType] 2 | === ValueType 3 | 4 | Represents the type of primitive value is held by a Value or Attribute. 5 | 6 | [caption=""] 7 | .Enum variants 8 | // tag::enum_constants[] 9 | [cols=""] 10 | [options="header"] 11 | |=== 12 | |Variant 13 | a| `Boolean` 14 | a| `Date` 15 | a| `Datetime` 16 | a| `DatetimeTZ` 17 | a| `Decimal` 18 | a| `Double` 19 | a| `Duration` 20 | a| `Integer` 21 | a| `String` 22 | a| `Struct(String)` 23 | |=== 24 | // end::enum_constants[] 25 | 26 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/transaction/TransactionType.adoc: -------------------------------------------------------------------------------- 1 | [#_enum_TransactionType] 2 | === TransactionType 3 | 4 | This enum is used to specify the type of transaction. 5 | 6 | [caption=""] 7 | .Enum variants 8 | // tag::enum_constants[] 9 | [cols=""] 10 | [options="header"] 11 | |=== 12 | |Variant 13 | a| `Read = 0` 14 | a| `Schema = 2` 15 | a| `Write = 1` 16 | |=== 17 | // end::enum_constants[] 18 | 19 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/value/Duration.adoc: -------------------------------------------------------------------------------- 1 | [#_struct_Duration] 2 | === Duration 3 | 4 | *Implements traits:* 5 | 6 | * `Clone` 7 | * `Copy` 8 | * `Debug` 9 | * `Display` 10 | * `Eq` 11 | * `FromStr` 12 | * `Hash` 13 | * `PartialEq` 14 | * `StructuralPartialEq` 15 | * `TryFrom` 16 | 17 | A relative duration, which contains months, days, and nanoseconds. Can be used for calendar-relative durations (eg 7 days forward), or for absolute durations using the nanosecond component When used as an absolute duration, convertible to chrono::Duration 18 | 19 | [caption=""] 20 | .Fields 21 | // tag::properties[] 22 | [cols=",,"] 23 | [options="header"] 24 | |=== 25 | |Name |Type |Description 26 | a| `days` a| `u32` a| 27 | a| `months` a| `u32` a| 28 | a| `nanos` a| `u64` a| 29 | |=== 30 | // end::properties[] 31 | 32 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/value/Offset.adoc: -------------------------------------------------------------------------------- 1 | [#_enum_Offset] 2 | === Offset 3 | 4 | Offset for datetime-tz. Can be retrieved from an IANA Tz or a FixedOffset. 5 | 6 | [caption=""] 7 | .Enum variants 8 | // tag::enum_constants[] 9 | [cols=""] 10 | [options="header"] 11 | |=== 12 | |Variant 13 | a| `Fixed(FixedOffset)` 14 | a| `IANA(::Offset)` 15 | |=== 16 | // end::enum_constants[] 17 | 18 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/value/Struct.adoc: -------------------------------------------------------------------------------- 1 | [#_struct_Struct] 2 | === Struct 3 | 4 | *Implements traits:* 5 | 6 | * `Clone` 7 | * `Debug` 8 | * `Display` 9 | * `PartialEq` 10 | * `StructuralPartialEq` 11 | 12 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/rust/value/TimeZone.adoc: -------------------------------------------------------------------------------- 1 | [#_enum_TimeZone] 2 | === TimeZone 3 | 4 | TimeZone for datetime-tz. Can be represented as an IANA Tz or as a FixedOffset. 5 | 6 | [caption=""] 7 | .Enum variants 8 | // tag::enum_constants[] 9 | [cols=""] 10 | [options="header"] 11 | |=== 12 | |Variant 13 | a| `Fixed(FixedOffset)` 14 | a| `IANA(Tz)` 15 | |=== 16 | // end::enum_constants[] 17 | 18 | -------------------------------------------------------------------------------- /docs/package-structure.dot: -------------------------------------------------------------------------------- 1 | digraph mygraph { 2 | node [shape=box]; 3 | "//:driver-java" 4 | "//:driver-java" -> "//api:api" 5 | "//:driver-java" -> "//cluster:cluster" 6 | "//:driver-java" -> "//core:core" 7 | "//cluster:cluster" 8 | "//cluster:cluster" -> "//api:api" 9 | "//cluster:cluster" -> "//common:common" 10 | "//cluster:cluster" -> "//core:core" 11 | "//core:core" 12 | "//core:core" -> "//api:api" 13 | "//core:core" -> "//common:common" 14 | "//core:core" -> "//concept:concept" 15 | "//core:core" -> "//logic:logic" 16 | "//core:core" -> "//query:query" 17 | "//core:core" -> "//stream:stream" 18 | "//stream:stream" 19 | "//stream:stream" -> "//common:common" 20 | "//query:query" 21 | "//query:query" -> "//api:api" 22 | "//query:query" -> "//common:common" 23 | "//query:query" -> "//concept:concept" 24 | "//logic:logic" 25 | "//logic:logic" -> "//api:api" 26 | "//logic:logic" -> "//common:common" 27 | "//concept:concept" 28 | "//concept:concept" -> "//api:api" 29 | "//concept:concept" -> "//common:common" 30 | "//api:api" 31 | "//api:api" -> "//common:common" 32 | "//common:common" 33 | } 34 | -------------------------------------------------------------------------------- /docs/package-structure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typedb/typedb-driver/b9b84673130a110dbb80b474037cefeb867fc780/docs/package-structure.png -------------------------------------------------------------------------------- /go/api/database/DatabaseManager.go: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package database 21 | 22 | type DatabaseManager interface { 23 | Get(name string) Database 24 | Contains(name string) bool 25 | Create(name string) 26 | All() []Database 27 | } 28 | -------------------------------------------------------------------------------- /go/api/user/User.go: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package user 21 | 22 | type User interface { 23 | Username() string 24 | PasswordExpirySeconds() (int64, bool) 25 | PasswordUpdate() (string, string) 26 | } 27 | -------------------------------------------------------------------------------- /go/api/user/UserManager.go: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package user 21 | 22 | type UserManager interface { 23 | Contains(username string) bool 24 | Create(username, password string) 25 | Delete(username string) 26 | Get(username string) User 27 | All() map[string]User 28 | PasswordSet(username, password string) 29 | } 30 | -------------------------------------------------------------------------------- /go/go_versions.bzl: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains") 19 | 20 | go_versions = [ 21 | "1.21.10", 22 | ] 23 | 24 | def register_all_toolchains(): 25 | for version in go_versions: 26 | go_register_toolchains(version=version) 27 | -------------------------------------------------------------------------------- /go/test/integration/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 19 | load("@io_bazel_rules_go//go:def.bzl", "go_test") 20 | 21 | exports_files( 22 | ["db_connection_test.go"] 23 | ) 24 | 25 | checkstyle_test( 26 | name = "checkstyle", 27 | size = "small", 28 | include = glob(["*"]), 29 | license_type = "apache-header", 30 | ) 31 | -------------------------------------------------------------------------------- /go/user/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | package(default_visibility = ["//visibility:public"]) 19 | 20 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 21 | load("@io_bazel_rules_go//go:def.bzl", "go_library") 22 | 23 | checkstyle_test( 24 | name = "checkstyle", 25 | size = "small", 26 | include = glob(["*"]), 27 | license_type = "apache-header", 28 | ) 29 | -------------------------------------------------------------------------------- /java/concept/answer/OkQueryAnswerImpl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package com.typedb.driver.concept.answer; 21 | 22 | import com.typedb.driver.api.answer.OkQueryAnswer; 23 | 24 | public class OkQueryAnswerImpl extends QueryAnswerImpl implements OkQueryAnswer { 25 | protected OkQueryAnswerImpl(com.typedb.driver.jni.QueryAnswer answer) { 26 | super(answer); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /java/concept/type/AttributeTypeImpl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package com.typedb.driver.concept.type; 21 | 22 | import com.typedb.driver.api.concept.type.AttributeType; 23 | 24 | public class AttributeTypeImpl extends TypeImpl implements AttributeType { 25 | public AttributeTypeImpl(com.typedb.driver.jni.Concept concept) { 26 | super(concept); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /java/concept/type/EntityTypeImpl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package com.typedb.driver.concept.type; 21 | 22 | import com.typedb.driver.api.concept.type.EntityType; 23 | 24 | public class EntityTypeImpl extends TypeImpl implements EntityType { 25 | public EntityTypeImpl(com.typedb.driver.jni.Concept concept) { 26 | super(concept); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /java/concept/type/RelationTypeImpl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package com.typedb.driver.concept.type; 21 | 22 | import com.typedb.driver.api.concept.type.RelationType; 23 | 24 | public class RelationTypeImpl extends TypeImpl implements RelationType { 25 | public RelationTypeImpl(com.typedb.driver.jni.Concept concept) { 26 | super(concept); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /java/concept/type/RoleTypeImpl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package com.typedb.driver.concept.type; 21 | 22 | import com.typedb.driver.api.concept.type.RoleType; 23 | 24 | public class RoleTypeImpl extends TypeImpl implements RoleType { 25 | public RoleTypeImpl(com.typedb.driver.jni.Concept concept) { 26 | super(concept); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /java/test/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 19 | 20 | checkstyle_test( 21 | name = "checkstyle", 22 | include = glob([ 23 | "*", 24 | "deployment/pom.xml", 25 | "deployment/src/test/**/*", 26 | ]), 27 | license_type = "apache-header", 28 | ) 29 | -------------------------------------------------------------------------------- /java/test/behaviour/debug/debug.feature: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | Feature: Debugging Space 19 | 20 | Background: 21 | Given typedb starts 22 | Given connection is open: false 23 | Given connection opens with default authentication 24 | Given connection is open: true 25 | 26 | # Do not commit any changes to this file. 27 | 28 | Scenario: Paste your scenario here 29 | -------------------------------------------------------------------------------- /java/test/behaviour/driver/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | package(default_visibility = ["//java/test/behaviour/driver:__subpackages__"]) 19 | 20 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 21 | 22 | checkstyle_test( 23 | name = "checkstyle", 24 | include = glob(["*"]), 25 | license_type = "apache-header", 26 | ) 27 | -------------------------------------------------------------------------------- /nodejs/.eslintignore: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | node_modules 19 | dist 20 | -------------------------------------------------------------------------------- /nodejs/api/answer/JSON.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | export type JSON = 21 | | null 22 | | string 23 | | number 24 | | boolean 25 | | JSONObject 26 | | JSONArray; 27 | 28 | export type JSONObject = { 29 | [x: string]: JSON; 30 | } 31 | 32 | export type JSONArray = Array; 33 | -------------------------------------------------------------------------------- /nodejs/test/behaviour/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 19 | 20 | checkstyle_test( 21 | name = "checkstyle", 22 | include = glob(["*"]), 23 | exclude = ["README.md"], 24 | license_type = "apache-header", 25 | ) 26 | -------------------------------------------------------------------------------- /nodejs/test/behaviour/README.md: -------------------------------------------------------------------------------- 1 | ## TypeDB Driver for Node.js: Behaviour Tests 2 | 3 | To develop the tests, simply run: 4 | ``` 5 | tsc 6 | ``` 7 | - If the `tsc` command isn't found, install it using `npm install -g typescript`. 8 | - If there are compiler errors, you may have a mismatched TypeScript version. Try `npm uninstall -g typescript; npm install -g typescript@{version}` where `{version}` is the version specified in root `package.json`. 9 | 10 | Running `tsc` will create the `dist` directory on your local machine, where all the BDD step implementations import typedb-driver symbols from. This allows your IDE to provide IntelliSense. 11 | 12 | > NOTE: When importing symbols in the test files, you must import everything from the 'dist' directory, or the tests will fail at runtime. This is because the Bazel test script compiles the driver's source files and puts them in a folder called 'dist'. 13 | 14 | The tests are all invoked via Bazel test targets, as in Driver Java. 15 | -------------------------------------------------------------------------------- /nodejs/test/behaviour/concept/type/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | exports_files(["TypeSteps.ts"]) 19 | 20 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 21 | 22 | checkstyle_test( 23 | name = "checkstyle", 24 | include = glob(["*"]), 25 | license_type = "apache-header", 26 | ) 27 | -------------------------------------------------------------------------------- /nodejs/test/behaviour/driver/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 19 | 20 | checkstyle_test( 21 | name = "checkstyle", 22 | include = glob(["*"]), 23 | license_type = "apache-header", 24 | ) 25 | -------------------------------------------------------------------------------- /nodejs/test/behaviour/util/UtilSteps.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | import {Given, Then} from "@cucumber/cucumber"; 21 | 22 | Given('set time-zone: {Timezone}', async (timezone: string) => { 23 | process.env.TZ = timezone; 24 | }); 25 | 26 | Then('wait {int} seconds', async function (seconds: number) { 27 | await new Promise(f => setTimeout(f, seconds * 1000)); 28 | }); 29 | -------------------------------------------------------------------------------- /nodejs/test/deployment/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "typedb-driver-test-deployment", 3 | "main": "application.test.js" 4 | } 5 | -------------------------------------------------------------------------------- /nodejs/test/integration/README.md: -------------------------------------------------------------------------------- 1 | ## TypeDB Driver for Node.js: Integration Tests 2 | 3 | These JavaScript tests verify the correctness of connection, Concept and Query methods. 4 | 5 | The only prerequisite to run them locally is that you must have `npm` or `yarn` installed, and a TypeDB server running in the background. 6 | 7 | To run all tests, run: 8 | ``` 9 | npm test 10 | ``` -------------------------------------------------------------------------------- /nodejs/tool/typedoc/typedoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "TypeDB Driver", 3 | "disableSources": true 4 | } 5 | -------------------------------------------------------------------------------- /python/conf.py: -------------------------------------------------------------------------------- 1 | # Configuration file for the Sphinx documentation builder. 2 | # 3 | # For the full list of built-in configuration values, see the documentation: 4 | # https://www.sphinx-doc.org/en/master/usage/configuration.html 5 | 6 | # -- Project information ----------------------------------------------------- 7 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information 8 | 9 | project = 'typedb-driver' 10 | copyright = '2024 TypeDB' 11 | author = 'TypeDB' 12 | 13 | # -- General configuration --------------------------------------------------- 14 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration 15 | 16 | extensions = ['sphinx.ext.autodoc'] 17 | 18 | templates_path = ['_templates'] 19 | exclude_patterns = [] 20 | 21 | # -- Options for HTML output ------------------------------------------------- 22 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output 23 | 24 | html_theme = 'alabaster' 25 | html_static_path = ['_static'] 26 | -------------------------------------------------------------------------------- /python/index.rst: -------------------------------------------------------------------------------- 1 | .. typedb-driver documentation master file, created by 2 | sphinx-quickstart on Fri Sep 15 16:13:51 2023. 3 | You can adapt this file completely to your liking, but it should at least 4 | contain the root `toctree` directive. 5 | 6 | Welcome to typedb-driver's documentation! 7 | ========================================= 8 | 9 | .. toctree:: 10 | :maxdepth: 2 11 | :caption: Contents: 12 | 13 | 14 | 15 | Indices and tables 16 | ================== 17 | 18 | * :ref:`genindex` 19 | * :ref:`modindex` 20 | * :ref:`search` 21 | -------------------------------------------------------------------------------- /python/requirements.txt: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | ## To install primary (not dev) dependencies, run: 19 | # pip install -r requirements.txt 20 | 21 | ## To install ALL (including dev) dependencies, run: 22 | # pip install -r requirements_dev.txt 23 | 24 | parse==1.18.0 25 | -------------------------------------------------------------------------------- /python/requirements_dev.txt: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | ## To install ALL dependencies, run: pip install -r requirements_dev.txt 19 | 20 | behave==1.2.6 21 | parse==1.18.0 22 | parse-type==0.6.2 23 | PyHamcrest==2.0.2 24 | six==1.16.0 25 | -------------------------------------------------------------------------------- /python/tests/behaviour/driver/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 19 | 20 | package(default_visibility = ["//python/tests/behaviour:__subpackages__"]) 21 | 22 | checkstyle_test( 23 | name = "checkstyle", 24 | include = glob(["*"]), 25 | license_type = "apache-header", 26 | size = "small", 27 | ) 28 | -------------------------------------------------------------------------------- /python/tests/behaviour/entry_point_behave.py: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | import sys 19 | 20 | from behave.__main__ import main 21 | 22 | if __name__ == "__main__": 23 | sys.exit(main()) 24 | -------------------------------------------------------------------------------- /python/tests/deployment/requirements.txt: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | --extra-index-url https://repo.typedb.com/public/public-snapshot/python/simple 19 | 20 | typedb-driver==DRIVER_PYTHON_VERSION_MARKER 21 | -------------------------------------------------------------------------------- /python/typedb/concept/type/attribute_type.py: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | from __future__ import annotations 19 | 20 | from typedb.api.concept.type.attribute_type import AttributeType 21 | from typedb.concept.type.type import _Type 22 | 23 | 24 | class _AttributeType(AttributeType, _Type): 25 | pass 26 | -------------------------------------------------------------------------------- /python/typedb/concept/type/entity_type.py: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | from __future__ import annotations 19 | 20 | from typedb.api.concept.type.entity_type import EntityType 21 | from typedb.concept.type.type import _Type 22 | 23 | 24 | class _EntityType(EntityType, _Type): 25 | pass 26 | -------------------------------------------------------------------------------- /python/typedb/concept/type/relation_type.py: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | from __future__ import annotations 19 | 20 | from typedb.api.concept.type.relation_type import RelationType 21 | from typedb.concept.type.type import _Type 22 | 23 | 24 | class _RelationType(RelationType, _Type): 25 | pass 26 | -------------------------------------------------------------------------------- /python/typedb/concept/type/role_type.py: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | from __future__ import annotations 19 | 20 | from typedb.api.concept.type.role_type import RoleType 21 | from typedb.concept.type.type import _Type 22 | 23 | 24 | class _RoleType(_Type, RoleType): 25 | pass 26 | -------------------------------------------------------------------------------- /rust/rustfmt.toml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | # 18 | 19 | imports_granularity = "Crate" 20 | group_imports = "StdExternalCrate" 21 | use_small_heuristics = "Max" 22 | max_width = 120 23 | -------------------------------------------------------------------------------- /rust/src/common/stream_async.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | pub use futures::{stream::BoxStream, Stream}; 21 | pub use tokio_stream::wrappers::UnboundedReceiverStream as NetworkStream; 22 | 23 | pub fn box_stream<'a, T>(stream: impl Stream + Send + 'a) -> BoxStream<'a, T> { 24 | Box::pin(stream) as futures::stream::BoxStream<'a, _> 25 | } 26 | -------------------------------------------------------------------------------- /rust/src/connection/mod.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | pub(crate) use self::transaction_stream::TransactionStream; 21 | pub use self::{credentials::Credentials, driver_options::DriverOptions}; 22 | 23 | mod credentials; 24 | mod driver_options; 25 | mod message; 26 | mod network; 27 | pub(crate) mod runtime; 28 | pub(crate) mod server_connection; 29 | pub(crate) mod transaction_stream; 30 | -------------------------------------------------------------------------------- /rust/src/connection/network/mod.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | mod channel; 21 | mod proto; 22 | mod stub; 23 | pub(super) mod transmitter; 24 | -------------------------------------------------------------------------------- /rust/src/connection/network/proto/user.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | use typedb_protocol::User as UserProto; 21 | 22 | use super::FromProto; 23 | use crate::info::UserInfo; 24 | 25 | impl FromProto for UserInfo { 26 | fn from_proto(proto: UserProto) -> Self { 27 | let UserProto { name, password } = proto; 28 | Self { name, password } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /rust/src/database/mod.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | pub use self::{database::Database, database_manager::DatabaseManager}; 21 | 22 | mod database; 23 | mod database_manager; 24 | -------------------------------------------------------------------------------- /rust/src/user/mod.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | pub use self::{user::User, user_manager::UserManager}; 21 | 22 | mod user; 23 | mod user_manager; 24 | -------------------------------------------------------------------------------- /rust/tests/behaviour/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | package(default_visibility = ["//visibility:public"]) 19 | 20 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 21 | 22 | checkstyle_test( 23 | name = "checkstyle", 24 | include = glob(["*", "**/*"]), 25 | license_type = "apache-header", 26 | size = "small", 27 | ) 28 | -------------------------------------------------------------------------------- /rust/tests/behaviour/config/Cargo.toml: -------------------------------------------------------------------------------- 1 | 2 | # Generated by TypeDB Cargo sync tool. 3 | # Do not modify this file. 4 | 5 | dependencies = {} 6 | 7 | [features] 8 | bazel = [] 9 | 10 | [package] 11 | name = "config" 12 | edition = "2021" 13 | version = "0.0.0" 14 | 15 | [lib] 16 | path = "lib.rs" 17 | 18 | -------------------------------------------------------------------------------- /rust/tests/behaviour/config/lib.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | pub fn is_cluster() -> bool { 21 | #[cfg(feature = "cluster")] 22 | { 23 | true 24 | } 25 | 26 | #[cfg(not(feature = "cluster"))] 27 | { 28 | false 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /rust/tests/behaviour/defs.bzl: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | crate_features_common = ["bazel"] 19 | -------------------------------------------------------------------------------- /rust/tests/integration/cluster/mod.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | -------------------------------------------------------------------------------- /rust/tests/integration/mod.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | mod cluster; 21 | mod cluster; 22 | -------------------------------------------------------------------------------- /tool/docs/update.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | 19 | # TODO: Temporarily update only 3.0 drivers 20 | bazel run //rust:docs_adoc 21 | bazel run //java:docs_adoc 22 | bazel run //python:docs_adoc 23 | #bazel run //nodejs:docs_adoc 24 | #bazel run //c:docs_adoc 25 | #bazel run //cpp:docs_adoc 26 | #bazel run //csharp:docs_adoc 27 | -------------------------------------------------------------------------------- /tool/release/BUILD: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | 19 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 20 | 21 | checkstyle_test( 22 | name = "checkstyle", 23 | include = glob(["*"]), 24 | license_type = "apache-header", 25 | ) 26 | -------------------------------------------------------------------------------- /tool/release/create_notes.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | 19 | bazel run @typedb_dependencies//tool/release/notes:create -- typedb typedb-driver HEAD $(cat VERSION) ./RELEASE_TEMPLATE.md ./RELEASE_NOTES_LATEST.md 20 | -------------------------------------------------------------------------------- /tool/rust/BUILD: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test") 19 | 20 | checkstyle_test( 21 | name = "checkstyle", 22 | include = glob(["*"]), 23 | license_type = "apache-header", 24 | size = "small", 25 | ) 26 | -------------------------------------------------------------------------------- /tool/rust/sync.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | 19 | bazel run @typedb_dependencies//tool/ide:rust_sync -- @typedb_driver_workspace_refs//:refs.json 20 | -------------------------------------------------------------------------------- /tool/test/EchoJavaHome.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package com.typedb.driver.tool.test; 21 | 22 | public class EchoJavaHome { 23 | public static void main(String[] args) { 24 | System.out.println(System.getProperty("java.home")); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /tool/test/resources/encryption/ext-grpc-root-ca.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIDFjCCAf6gAwIBAgIGIvTKkDclMA0GCSqGSIb3DQEBCwUAMCoxKDAmBgNVBAMT 3 | H2VuY3J5cHRpb24tdGVzdHMtY2EtZXh0ZXJuYWwtY2EwHhcNMjMxMDA2MTU1NjA5 4 | WhcNMjUxMDA1MTU1NjA5WjAqMSgwJgYDVQQDEx9lbmNyeXB0aW9uLXRlc3RzLWNh 5 | LWV4dGVybmFsLWNhMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4iBw 6 | NzgEQG//jCfRpHtIsZggHB4AWTfCzr69zrFTUFejcF21uZJ1Y2YGYPbUVTDspWI4 7 | 8k/N0qlw7nd69EjpEfd/DDk7fYbGEhAMVsEpBtR3+BTP9sQ2tj9YUExaSEpkdOSD 8 | s0+qrhgoisVyhgmK3eg23A8afLWKs9U9HWp4vnJQ8gQBkrvMxXKjpE1lJE2L06c7 9 | Jnah1TcCzhsUF6aysnDW/hiXg3A3nO4w6QezuOvSGa87o63NkJ5h8n2BH/gdzj/H 10 | ijMTpFWdmhYpOyw4Kxx8s1/eqO8W6ate/0lXWQadZnlMVQxKaZOYkhNCWzTq5w+l 11 | yUSxQU1f410Wnn00KwIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB 12 | /wQEAwICBDAdBgNVHQ4EFgQUU7osc03EU3j/h2NuMjH4TwY6VmMwDQYJKoZIhvcN 13 | AQELBQADggEBAGmgZ4eVfiP65BBAd4RW8LvcyQ6LqROz6HrzdhbaildhWE6Qam3U 14 | aG8FcxLWNuk0z/vhHHTjusrYmu6qjX0HEVmYn3HHOKMXlgl3FANAenuufVKPtOlg 15 | DUbkqsqq0X3bEpFuuCqhASc5tcIfBxnPbNcS1PmIepsj1EiobUik3/Wizsdi6KM7 16 | ayVtak915BX+dfITI1ahp6feT2GDJlMJHBwnVIZrhlj8Y7colsy+HaagZmG/wyL8 17 | La21heQGnB5o1jFvV9zQFpY7x/RkrtqFrl1ePMgsAAAF82j6pK/Fis/m8QE0J9+R 18 | W+cjidCIQhuZU40UOUK+CeZN4rdg7v7JTO0= 19 | -----END CERTIFICATE----- 20 | -------------------------------------------------------------------------------- /tool/test/resources/encryption/int-zmq-private-key: -------------------------------------------------------------------------------- 1 | kt{E*P89LL8uG6GxUAo?%baTE}9dEqXVTLabY==m -------------------------------------------------------------------------------- /tool/test/resources/encryption/int-zmq-public-key: -------------------------------------------------------------------------------- 1 | W-]2tG6]I]H}}t}1U9oa7wkw7t/4Wa[E8c/8N