Commit 3dbb487
authored
Merge development (#39)
* add DropAllIndexes() method (#25)
Create a new method to drop all the indexes of a collection
in a single call
* readme: credit @feliixx for #25 (#26)
* send metadata during handshake (#28)
fix [#484](https://github.com/go-mgo/mgo/issues/484)
Annotate connections with metadata provided by the
connecting client.
informations send:
{
"aplication": { // optional
"name": "myAppName"
}
"driver": {
"name": "mgo",
"version": "v2"
},
"os": {
"type": runtime.GOOS,
"architecture": runtime.GOARCH
}
}
to set "application.name", add `appname` param in options
of string connection URI,
for example : "mongodb://localhost:27017?appname=myAppName"
* Update README to add appName (#32)
* docs: elaborate on what appName does
* readme: add appName to changes
* add method CreateView() (#33)
Fix #30.
Thanks to @feliixx for the time and effort.
* readme: credit @feliixx in the README (#36)
* Don't panic on indexed int64 fields (#23)
* Stop all db instances after tests (go-mgo#462)
If all tests pass, the builds for mongo earlier than 2.6 are still failing.
Running a clean up fixes the issue.
* fixing int64 type failing when getting indexes and trying to type them
* requested changes relating to case statement and panic
* Update README.md to credit @mapete94.
* tests: ensure indexed int64 fields do not cause a panic in Indexes()
See:
* #23
* https://github.com/go-mgo/mgo/issues/475
* go-mgo#476
* Add collation option to collection.Create() (#37)
- Allow specifying the default collation for the collection when creating it.
- Add some documentation to query.Collation() method.
fix #29
* Test against MongoDB 3.4.x (#35)
* test against MongoDB 3.4.x
* tests: use listIndexes to assert index state for 3.4+
* make test pass against v3.4.x
- skip `TestViewWithCollation` because of SERVER-31049,
cf: https://jira.mongodb.org/browse/SERVER-31049
- add versionAtLeast() method in init.js script to better
detect server version
fixes #311 parent df81fe4 commit 3dbb487
File tree
15 files changed
+667
-108
lines changed- harness
- daemons
- cfg1
- cfg2
- cfg3
- s1
- s2
- s3
- mongojs
15 files changed
+667
-108
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | 5 | | |
10 | 6 | | |
11 | 7 | | |
12 | 8 | | |
13 | | - | |
14 | 9 | | |
15 | 10 | | |
16 | | - | |
17 | 11 | | |
18 | 12 | | |
19 | | - | |
20 | 13 | | |
21 | 14 | | |
22 | | - | |
23 | 15 | | |
24 | 16 | | |
25 | | - | |
26 | 17 | | |
27 | 18 | | |
| 19 | + | |
| 20 | + | |
28 | 21 | | |
29 | 22 | | |
30 | 23 | | |
| |||
51 | 44 | | |
52 | 45 | | |
53 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
54 | 50 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
| 40 | + | |
35 | 41 | | |
36 | 42 | | |
37 | 43 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| 65 | + | |
64 | 66 | | |
65 | 67 | | |
66 | | - | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| |||
144 | 147 | | |
145 | 148 | | |
146 | 149 | | |
147 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
148 | 161 | | |
149 | 162 | | |
150 | 163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1281 | 1281 | | |
1282 | 1282 | | |
1283 | 1283 | | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
1284 | 1287 | | |
1285 | 1288 | | |
1286 | 1289 | | |
| |||
1369 | 1372 | | |
1370 | 1373 | | |
1371 | 1374 | | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
1372 | 1381 | | |
1373 | 1382 | | |
1374 | 1383 | | |
| |||
1870 | 1879 | | |
1871 | 1880 | | |
1872 | 1881 | | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
1873 | 1885 | | |
1874 | 1886 | | |
1875 | 1887 | | |
| |||
1981 | 1993 | | |
1982 | 1994 | | |
1983 | 1995 | | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
1984 | 1999 | | |
1985 | 2000 | | |
1986 | 2001 | | |
| |||
2067 | 2082 | | |
2068 | 2083 | | |
2069 | 2084 | | |
| 2085 | + | |
| 2086 | + | |
| 2087 | + | |
2070 | 2088 | | |
2071 | 2089 | | |
2072 | 2090 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
43 | 53 | | |
44 | | - | |
| 54 | + | |
| 55 | + | |
45 | 56 | | |
46 | 57 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
51 | 81 | | |
52 | 82 | | |
| 83 | + | |
| 84 | + | |
53 | 85 | | |
54 | 86 | | |
55 | 87 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
0 commit comments