|
|
|
|
|
- Declaration
- Properties specific to mongoGridFS variables
- Functions that use the mongoGridFS type
mongoGridFS (Type of variable) In french: mongoGridFS
The mongoGridFS type is used to define the advanced characteristics of a file system for a MongoDB database. The characteristics of this file system can be defined and modified by several WLanguage properties. Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable. cntMDB is mongoConnection("mongodb://db1.example.net") fs is mongoGridFS fs.Database = cntMDB.Database["CRM"] fs.Prefix = "myfs" Trace(MongoGridFSListFile(fs))
MyVariable is mongoGridFS(<Database>, <Prefix>)
<Database>: Character string MongoDB database containing the file system. <Prefix>: Character string Prefix of collection. Files will be stored in the collections as <prefix>.files and <prefix>.chunck. Remarks Properties specific to mongoGridFS variables The following properties can be used to handle a MongoDB file system: | | | Property name | Type used | Effect |
---|
Database | mongoDatabase variable | Database containing the file system. | Prefix | Character string | Prefix of collection. Files will be stored in the collections as <prefix>.files and <prefix>.chunck. |
Functions that use the mongoGridFS type The following functions use the mongoGridFS type:
Remark: These functions can also be used to handle a Mongo database. In this case, the prefix corresponds to the default value "fs". Prefix syntaxes are also available:
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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|