• Const
batch2: any
Defined in: mongodb.ts:6
▸ openMongoDb(args
: { mongodb?
: mongoDB.MongoClient ; name?
: string ; tables?
: string[] ; url?
: string }): Promise<{ close
: () => Promise<void> ; db
: MongoClient ; tables
: Record<string, Collection<Document>> } | { close
: () => Promise<void> ; db
: Db ; tables
: Record<string, Collection<Document>> }>
Name | Type |
---|---|
args |
object |
args.mongodb? |
mongoDB.MongoClient |
args.name? |
string |
args.tables? |
string[] |
args.url? |
string |
Returns: Promise<{ close
: () => Promise<void> ; db
: MongoClient ; tables
: Record<string, Collection<Document>> } | { close
: () => Promise<void> ; db
: Db ; tables
: Record<string, Collection<Document>> }>
Defined in: mongodb.ts:42
▸ openMongoDbInput(args
: { inputHost?
: string ; inputMongodb?
: mongoDB.MongoClient ; inputName?
: string ; inputPassword?
: string ; inputPort?
: number ; inputTable?
: string[] ; inputUser?
: string }): Promise<{ close
: () => Promise<void> ; db
: MongoClient ; tables
: Record<string, Collection<Document>> } | { close
: () => Promise<void> ; db
: Db ; tables
: Record<string, Collection<Document>> }>
Name | Type |
---|---|
args |
object |
args.inputHost? |
string |
args.inputMongodb? |
mongoDB.MongoClient |
args.inputName? |
string |
args.inputPassword? |
string |
args.inputPort? |
number |
args.inputTable? |
string[] |
args.inputUser? |
string |
Returns: Promise<{ close
: () => Promise<void> ; db
: MongoClient ; tables
: Record<string, Collection<Document>> } | { close
: () => Promise<void> ; db
: Db ; tables
: Record<string, Collection<Document>> }>
Defined in: mongodb.ts:8
▸ openMongoDbOutput(args
: { outputHost?
: string ; outputMongodb?
: mongoDB.MongoClient ; outputName?
: string ; outputPassword?
: string ; outputPort?
: number ; outputTable?
: string[] ; outputUser?
: string }): Promise<{ close
: () => Promise<void> ; db
: MongoClient ; tables
: Record<string, Collection<Document>> } | { close
: () => Promise<void> ; db
: Db ; tables
: Record<string, Collection<Document>> }>
Name | Type |
---|---|
args |
object |
args.outputHost? |
string |
args.outputMongodb? |
mongoDB.MongoClient |
args.outputName? |
string |
args.outputPassword? |
string |
args.outputPort? |
number |
args.outputTable? |
string[] |
args.outputUser? |
string |
Returns: Promise<{ close
: () => Promise<void> ; db
: MongoClient ; tables
: Record<string, Collection<Document>> } | { close
: () => Promise<void> ; db
: Db ; tables
: Record<string, Collection<Document>> }>
Defined in: mongodb.ts:25
▸ streamFromMongoDb(collection
: mongoDB.Collection, args
: { query?
: string }): ReadableStreamTree
Name | Type |
---|---|
collection |
mongoDB.Collection |
args |
object |
args.query? |
string |
Returns: ReadableStreamTree
Defined in: mongodb.ts:71
▸ streamToMongoDb(collection
: mongoDB.Collection, options?
: { batchSize?
: number }): WritableStreamTree
Name | Type |
---|---|
collection |
mongoDB.Collection |
options? |
object |
options.batchSize? |
number |
Returns: WritableStreamTree
Defined in: mongodb.ts:77