1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 | import RxSession from './session-rx'
|
21 | import {
|
22 | ServerInfo,
|
23 | Session,
|
24 | Driver as CoreDriver,
|
25 | types
|
26 | } from 'neo4j-driver-core'
|
27 |
|
28 | declare type AuthToken = types.AuthToken
|
29 | declare type Config = types.Config
|
30 | declare type EncryptionLevel = types.EncryptionLevel
|
31 | declare type TrustStrategy = types.TrustStrategy
|
32 |
|
33 | declare type SessionMode = types.SessionMode
|
34 |
|
35 | declare const READ: SessionMode
|
36 | declare const WRITE: SessionMode
|
37 |
|
38 | declare interface Driver extends CoreDriver {
|
39 | rxSession({
|
40 | defaultAccessMode,
|
41 | bookmarks,
|
42 | database,
|
43 | fetchSize
|
44 | }?: {
|
45 | defaultAccessMode?: SessionMode
|
46 | bookmarks?: string | string[]
|
47 | fetchSize?: number
|
48 | database?: string
|
49 | }): RxSession
|
50 | }
|
51 |
|
52 | export {
|
53 | Driver,
|
54 | READ,
|
55 | WRITE,
|
56 | AuthToken,
|
57 | Config,
|
58 | EncryptionLevel,
|
59 | TrustStrategy,
|
60 | SessionMode
|
61 | }
|
62 |
|
63 | export default Driver
|