Skip to content

Commit 4818024

Browse files
authored
[java-shell] support bson types. Use GraalVM Value instead of Map to avoid incorrect automatic conversion (#197)
* [java-shell] add insertMany test * [java-shell] use Value instead of Map<*, *> because graalvm fails to convert Value to Map<*, *> * [java-shell] support regexp * [java-shell] implement cursor methods: comment, max, skip * [java-shell] support some commands of bulkWrite * [java-shell] runCommand and stats methods return JS object instead of java Document * [java-shell] support deleteOne * [java-shell] support findOneAndUpdate * [java-shell] convert all parameters to Document * [java-shell] support updateMany * [java-shell] support findOneAndDelete * [java-shell] support runCommand with string * [java-shell] support bson types ObjectId, MinKey, MaxKey, Code, DBRef, NumberDecimal, NumberInt, Timestamp, Symbol, NumberLong, ISODate, BinData HexData, UUID, MD5 * [java-shell] support updateOne * [java-shell] support createIndex and createIndexes * [java-shell] drop collection after each test case * [java-shell] support dropIndexes * [java-shell] support cursor.map * [java-shell] support InsertManyResult * [java-shell] add test for aggregate with varargs * [java-shell] ignore UUID tests
1 parent dfc252e commit 4818024

File tree

162 files changed

+1556
-361
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+1556
-361
lines changed

packages/async-rewriter/package-lock.json

Lines changed: 0 additions & 69 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/java-shell/src/main/js/all.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ _global = {
99
Cursor: ShellApiSignatures.Cursor,
1010
AggregationCursor: ShellApiSignatures.AggregationCursor,
1111
InsertOneResult: ShellApiSignatures.InsertOneResult,
12+
InsertManyResult: ShellApiSignatures.InsertManyResult,
1213
DeleteResult: ShellApiSignatures.DeleteResult,
1314
UpdateResult: ShellApiSignatures.UpdateResult,
14-
CommandResult: ShellApiSignatures.CommandResult
15+
BulkWriteResult: ShellApiSignatures.BulkWriteResult,
16+
CommandResult: ShellApiSignatures.CommandResult,
17+
ShellBson: ShellApiSignatures.ShellBson
1518
};

0 commit comments

Comments
 (0)