forked from canada-ca/tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
54 lines (54 loc) · 1.65 KB
/
Copy pathindex.d.ts
File metadata and controls
54 lines (54 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
* ```js
* import arangojs, { aql, Database } from "arangojs";
* ```
*
* The "index" module is the default entry point when importing the arangojs
* module or using the web build in the browser.
*
* If you are just getting started, you probably want to use the
* {@link arangojs} function, which is also the default export of this module,
* or the {@link Database} class for which it is a wrapper.
*
* @packageDocumentation
*/
import { Config } from "./connection";
import { Database } from "./database";
/**
* Creates a new `Database` instance with its own connection pool.
*
* This is a wrapper function for the {@link Database.constructor}.
*
* @param config - An object with configuration options.
*
* @example
* ```js
* const db = arangojs({
* url: "http://localhost:8529",
* databaseName: "myDatabase",
* auth: { username: "admin", password: "hunter2" },
* });
* ```
*/
export declare function arangojs(config?: Config): Database;
/**
* Creates a new `Database` instance with its own connection pool.
*
* This is a wrapper function for the {@link Database.constructor}.
*
* @param url - Base URL of the ArangoDB server or list of server URLs.
* Equivalent to the `url` option in {@link Config}.
*
* @example
* ```js
* const db = arangojs("http://localhost:8529", "myDatabase");
* db.useBasicAuth("admin", "hunter2");
* ```
*/
export declare function arangojs(url: string | string[], name?: string): Database;
export default arangojs;
export { aql } from "./aql";
export { CollectionStatus, CollectionType } from "./collection";
export { Database } from "./database";
export { ViewType } from "./view";
//# sourceMappingURL=index.d.ts.map