Skip to content

Commit

Permalink
[java-shell] support bson types. Use GraalVM Value instead of Map to …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
kornilova203 committed May 20, 2020
1 parent dfc252e commit 4818024
Show file tree
Hide file tree
Showing 162 changed files with 1,556 additions and 361 deletions.
69 changes: 0 additions & 69 deletions packages/async-rewriter/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion packages/java-shell/src/main/js/all.js
Expand Up @@ -9,7 +9,10 @@ _global = {
Cursor: ShellApiSignatures.Cursor,
AggregationCursor: ShellApiSignatures.AggregationCursor,
InsertOneResult: ShellApiSignatures.InsertOneResult,
InsertManyResult: ShellApiSignatures.InsertManyResult,
DeleteResult: ShellApiSignatures.DeleteResult,
UpdateResult: ShellApiSignatures.UpdateResult,
CommandResult: ShellApiSignatures.CommandResult
BulkWriteResult: ShellApiSignatures.BulkWriteResult,
CommandResult: ShellApiSignatures.CommandResult,
ShellBson: ShellApiSignatures.ShellBson
};

0 comments on commit 4818024

Please sign in to comment.