You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It provides easy upload, download and metadata handling.
7
7
8
+
Sometimes also normal collections can be helpful for storing data.
9
+
10
+
@@@ note { title=Official_MongoDB_Documentation }
11
+
12
+
Furthermore, if your files are all smaller than the 16 MB BSON Document Size limit, consider storing each file in a single document instead of using GridFS. You may use the BinData data type to store the binary data. See your drivers documentation for details on using BinData.Furthermore, if your files are all smaller than the 16 MB BSON Document Size limit, consider storing each file in a single document instead of using GridFS. You may use the BinData data type to store the binary data. See your drivers documentation for details on using BinData.
13
+
14
+
@@@
15
+
8
16
## Usage
9
17
10
18
A [MongoDatabase](http://mongodb.github.io/mongo-scala-driver/2.3/scaladoc/org/mongodb/scala/MongoDatabase.html) and a bucket name is needed.
@@ -13,6 +21,14 @@ A [MongoDatabase](http://mongodb.github.io/mongo-scala-driver/2.3/scaladoc/org/m
Copy file name to clipboardExpand all lines: src/main/paradox/dao/mongo_dao.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,6 @@ MongoDAO is the core of this framework. The [DAO](https://en.wikipedia.org/wiki
6
6
7
7
The MongoDAO object holds a reference to a [MongoCollection](http://mongodb.github.io/mongo-scala-driver/2.3/scaladoc/org/mongodb/scala/MongoCollection.html) and adds functions for easy collection handling.
8
8
9
-
All functions support synchronous result handling (add Result to function name, e.g. drop -> dropResult, insert ->insertResult).
Do not use GridFS if you need to update the content of the entire file atomically. As an alternative you can store multiple versions of each file and specify the current version of the file in the metadata. You can update the metadata field that indicates “latest” status in an atomic update after uploading the new version of the file, and later remove previous versions if needed.Do not use GridFS if you need to update the content of the entire file atomically. As an alternative you can store multiple versions of each file and specify the current version of the file in the metadata. You can update the metadata field that indicates “latest” status in an atomic update after uploading the new version of the file, and later remove previous versions if needed.
23
+
24
+
@@@
25
+
26
+
## Delete
27
+
28
+
GridFSFile will be deleted by a given ObjectID.
29
+
30
+
With implicit conversion you can use for oid Parameter:
0 commit comments