Typescript HTTP Driver
Connection
Driver Params
TransactionOptions
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
TypeDBHttpDriver
class
TypeDBHttpDriver
new TypeDBHttpDriver(params: DriverParams): TypeDBHttpDriver
| Name | Description | Type |
|---|---|---|
|
|
TypeDBHttpDriver
analyze
analyze( transactionId: string, query: string, analyzeOptions?: AnalyzeOptions, ): Promise<ApiResponse<AnalyzeResponse>>
| Name | Description | Type |
|---|---|---|
|
|
|
|
|
|
|
|
Promise<ApiResponse<AnalyzeResponse>>
closeTransaction
closeTransaction(transactionId: string): Promise<ApiResponse>
| Name | Description | Type |
|---|---|---|
|
|
Promise<ApiResponse>
commitTransaction
commitTransaction(transactionId: string): Promise<ApiResponse>
| Name | Description | Type |
|---|---|---|
|
|
Promise<ApiResponse>
createDatabase
createDatabase(name: string): Promise<ApiResponse>
| Name | Description | Type |
|---|---|---|
|
|
Promise<ApiResponse>
createUser
createUser(username: string, password: string): Promise<ApiResponse>
| Name | Description | Type |
|---|---|---|
|
|
|
|
|
Promise<ApiResponse>
deleteDatabase
deleteDatabase(name: string): Promise<ApiResponse>
| Name | Description | Type |
|---|---|---|
|
|
Promise<ApiResponse>
deleteUser
deleteUser(username: string): Promise<ApiResponse>
| Name | Description | Type |
|---|---|---|
|
|
Promise<ApiResponse>
getDatabase
getDatabase(name: string): Promise<ApiResponse<Database>>
| Name | Description | Type |
|---|---|---|
|
|
Promise<ApiResponse<Database>>
getDatabaseSchema
getDatabaseSchema(name: string): Promise<ApiResponse<string>>
| Name | Description | Type |
|---|---|---|
|
|
Promise<ApiResponse<string>>
getDatabaseTypeSchema
getDatabaseTypeSchema(name: string): Promise<ApiResponse<string>>
| Name | Description | Type |
|---|---|---|
|
|
Promise<ApiResponse<string>>
getDatabases
getDatabases(): Promise<ApiResponse<DatabasesListResponse>>
Promise<ApiResponse<DatabasesListResponse>>
getUser
getUser(username: string): Promise<ApiResponse<User>>
| Name | Description | Type |
|---|---|---|
|
|
Promise<ApiResponse<User>>
getUsers
getUsers(): Promise<ApiResponse<UsersListResponse>>
Promise<ApiResponse<UsersListResponse>>
oneShotQuery
oneShotQuery( query: string, commit: boolean, databaseName: string, transactionType: TransactionType, transactionOptions?: TransactionOptions, queryOptions?: QueryOptions, ): Promise<ApiResponse<QueryResponse>>
| Name | Description | Type |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Promise<ApiResponse<QueryResponse>>
openTransaction
openTransaction( databaseName: string, transactionType: TransactionType, transactionOptions?: TransactionOptions, ): Promise<ApiResponse<TransactionOpenResponse>>
| Name | Description | Type |
|---|---|---|
|
|
|
|
|
|
|
|
Promise<ApiResponse<TransactionOpenResponse>>
query
query( transactionId: string, query: string, queryOptions?: QueryOptions, ): Promise<ApiResponse<QueryResponse>>
| Name | Description | Type |
|---|---|---|
|
|
|
|
|
|
|
|
Promise<ApiResponse<QueryResponse>>
rollbackTransaction
rollbackTransaction(transactionId: string): Promise<ApiResponse>
| Name | Description | Type |
|---|---|---|
|
|
Promise<ApiResponse>
Static Functions
class
isBasicParams
isBasicParams(params: DriverParams): params is DriverParamsBasic
| Name | Description | Type |
|---|---|---|
|
|
params is DriverParamsBasic
Response
ConceptDocumentsQueryResponse
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ConceptRowsQueryResponse
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OkQueryResponse
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
Static Functions
class
isApiError
isApiError(err: any): err is ApiError
| Name | Description | Type |
|---|---|---|
|
|
err is ApiError
Concept
Attribute
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AttributeType
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
Analyze
AnalyzedConjunction
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
AnalyzedFetch
class
AnalyzedFetch:
| { elements: AnalyzedFetch; tag: "list" }
| { possibleFields: FetchAnnotationFieldEntry[]; tag: "object" }
| { tag: "value"; valueTypes: ValueType[] }
AnalyzedFunction
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AnalyzedPipeline
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConjunctionAnnotations
class
| Name | Type | Description |
|---|---|---|
|
|
ConstraintAny
class
ConstraintAny:
| ConstraintIsa
| ConstraintIsaExact
| ConstraintHas
| ConstraintLinks
| ConstraintSub
| ConstraintSubExact
| ConstraintOwns
| ConstraintRelates
| ConstraintPlays
| ConstraintExpression
| ConstraintFunction
| ConstraintComparison
| ConstraintIs
| ConstraintIid
| ConstraintKind
| ConstraintValue
| ConstraintLabel
| ConstraintOr
| ConstraintNot
| ConstraintTry
ConstraintComparison
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ConstraintExpression
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ConstraintFunction
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ConstraintHas
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintIid
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintIs
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintIsa
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintIsaExact
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintKind
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintLabel
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintLinks
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ConstraintOwns
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintPlays
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintRelates
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintSub
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintSubExact
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintValue
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintVertexAny
class
ConstraintVertexAny:
| ConstraintVertexVariable
| ConstraintVertexLabel
| ConstraintVertexValue
| ConstraintVertexNamedRole
ConstraintVertexNamedRole
class
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
FunctionReturnStructure
class
FunctionReturnStructure:
| {
selector: FunctionSingleReturnSelector;
tag: "single";
variables: VariableId[];
}
| { tag: "stream"; variables: VariableId[] }
| { tag: "check" }
| { reducers: Reducer[]; tag: "reduce" }
PipelineStage
class
PipelineStage:
| { block: ConjunctionIndex; tag: "match" }
| { block: ConjunctionIndex; tag: "insert" }
| {
block: ConjunctionIndex;
deletedVariables: VariableId[];
tag: "delete";
}
| { block: ConjunctionIndex; tag: "put" }
| { block: ConjunctionIndex; tag: "update" }
| { tag: "select"; variables: VariableId[] }
| {
tag: "sort";
variables: { tag: "Ascending" | "Descending"; variable: VariableId }[];
}
| { tag: "require"; variables: VariableId }
| { offset: number; tag: "offset" }
| { limit: number; tag: "limit" }
| { tag: "distinct" }
| {
groupby: VariableId[];
reducers: { assigned: VariableId; reducer: Reducer }[];
tag: "reduce";
}