|
|
|
|
|
MongoGridFSListFile (Function) In french: MongoGridFSListeFichier Retrieves the list of MongoDB files found in the MongoDB file system (gridFS). arrFileList is array of mongoGridFSFileInfo  arrFileList = MongoGridFSListFile(CntMDB.Database["CRM"]) FOR EACH file OF arrFileList // Process the file Trace(file.Name) END
TableDeleteAll(TABLE_GridFS) Â arrFile is array of mongoGridFSFileInfo = MongoGridFSListFile(gclGridFS) file is mongoGridFSFileInfo FOR EACH file OF arrFile TableAddLine(TABLE_GridFS, VariantToJSON(file.ID), ... file.Name, file.Date, file.Md5, file.Size, file.ChunkSize, file.ContentType) END Â TableSelectMinus(TABLE_GridFS)
Syntax
<Result> = MongoGridFSListFile(<File system>)
<Result>: array of mongoGridFSFileInfo Array of mongoGridFSFileInfo variables corresponding to the description of listed files. <File system>: mongoGridFS or mongoDatabase variable File system of the MongoDB database to use. Corresponds to: - the name of the mongoGridFS variable that corresponds to the Mongo file system.
- the name of the mongoDatabase variable that corresponds to the MongoDB database. In this case, the file system uses the "fs" prefix.
Related Examples:
|
Unit examples (WINDEV): Native access to MongoDB
[ + ] This example shows how to use the main functions of native access to MongoDB databases: adding data, reading (searching), modifying and deleting data in the database. The example also shows functions for saving files in the MongoDB GridFS data system.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|