Typescript HTTP Driver
Connection
TransactionOptions
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
TypeDBHttpDriver
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
isBasicParams
isBasicParams(params: DriverParams): params is DriverParamsBasic
| Name | Description | Type |
|---|---|---|
|
|
params is DriverParamsBasic
Response
ConceptDocumentsQueryResponse
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ConceptRowsQueryResponse
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OkQueryResponse
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
Static Functions
isApiError
isApiError(err: any): err is ApiError
| Name | Description | Type |
|---|---|---|
|
|
err is ApiError
Concept
Analyze
AnalyzedConjunction
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
AnalyzedFetch
AnalyzedFetch:
| { elements: AnalyzedFetch; tag: "list" }
| { possibleFields: FetchAnnotationFieldEntry[]; tag: "object" }
| { tag: "value"; valueTypes: ValueType[] }
AnalyzedFunction
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AnalyzedPipeline
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConjunctionAnnotations
| Name | Type | Description |
|---|---|---|
|
|
ConstraintAny
ConstraintAny:
| ConstraintIsa
| ConstraintIsaExact
| ConstraintHas
| ConstraintLinks
| ConstraintSub
| ConstraintSubExact
| ConstraintOwns
| ConstraintRelates
| ConstraintPlays
| ConstraintExpression
| ConstraintFunction
| ConstraintComparison
| ConstraintIs
| ConstraintIid
| ConstraintKind
| ConstraintValue
| ConstraintLabel
| ConstraintOr
| ConstraintNot
| ConstraintTry
ConstraintComparison
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ConstraintExpression
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ConstraintFunction
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ConstraintHas
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintIid
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintIs
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintIsa
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintIsaExact
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintKind
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintLabel
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintLinks
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ConstraintOwns
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintPlays
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintRelates
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintSub
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintSubExact
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintValue
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
ConstraintVertexAny
ConstraintVertexAny:
| ConstraintVertexVariable
| ConstraintVertexLabel
| ConstraintVertexValue
| ConstraintVertexNamedRole
FunctionReturnStructure
FunctionReturnStructure:
| {
selector: FunctionSingleReturnSelector;
tag: "single";
variables: VariableId[];
}
| { tag: "stream"; variables: VariableId[] }
| { tag: "check" }
| { reducers: Reducer[]; tag: "reduce" }
PipelineStage
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";
}