Giter VIP home page Giter VIP logo

mongodb-jdbc-driver's People

Contributors

dkapoor avatar neilireson avatar practicingman avatar u-ways avatar wise-coders avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mongodb-jdbc-driver's Issues

SSL support for passing cert along with the connections string

Does this driver support SSL? If so, then how can we pass it the cert?
for example:

jdbc_connection_string => "jdbc:mongodb://user:password@localhost:27017/testDb?authMechanism=DEFAULT&tls=true&tlsCAFile=/home/ca-bundle.pem"

but this doesn't work. Is there any other way?

mongodb uri set db and authSource, but execute "db" return admin

Hi, there is a question i want to ask you. I use mogodb driver to connector mongodb,

uri is mongodb://admin:admin@localhost:27017/test1?authSource=admin

but when i execute "db" it returns admin, not test1. and when i execute "use test1; db.a.find();" it will execute in admin, not in test1

i want to execute shell command in test1 but not admin ,what can i do?

is support count?

when i use "count()" then return null.
sql like this
db.getCollection("book").count()
the result is null

java.sql.SQLException: Could not find option with name engine.WarnInterpreterOnly.

Hi,
when I first use this driver,an error happened like this:

java.lang.IllegalArgumentException: Could not find option with name engine.WarnInterpreterOnly.
	at com.oracle.truffle.polyglot.PolyglotEngineException.illegalArgument(PolyglotEngineException.java:130)
	at com.oracle.truffle.polyglot.OptionValuesImpl.failNotFound(OptionValuesImpl.java:283)
	at com.oracle.truffle.polyglot.OptionValuesImpl.failNotFound(OptionValuesImpl.java:263)
	at com.oracle.truffle.polyglot.OptionValuesImpl.findDescriptor(OptionValuesImpl.java:240)
	at com.oracle.truffle.polyglot.OptionValuesImpl.put(OptionValuesImpl.java:142)
	at com.oracle.truffle.polyglot.OptionValuesImpl.putAll(OptionValuesImpl.java:137)
	at com.oracle.truffle.polyglot.PolyglotImpl.createEngineOptions(PolyglotImpl.java:292)
	at com.oracle.truffle.polyglot.PolyglotImpl.buildEngine(PolyglotImpl.java:234)
	at org.graalvm.polyglot.Engine$Builder.build(Engine.java:546)
	at org.graalvm.polyglot.Context$Builder.build(Context.java:1687)
	at com.wisecoders.dbschema.mongodb.MongoConnection.createContext(MongoConnection.java:413)
	at com.wisecoders.dbschema.mongodb.MongoPreparedStatement.executeQuery(MongoPreparedStatement.java:132)

Can you help me? thanks

There are many functions that are not supported

I use this driver connect operator mongodb,Connection by JDBC,but i find many functions not supported, just like aggregate、group、findOne etc, Is there any other way to solve it,Thanks!

db.getCollection in forEach is not support

Hi author, I need dynamic collection query like this:

var cNames=db.getCollectionNames();
cNames.forEach(cName=>{
db.getCollection(cName).aggregate([
{
    $addFields:{
       Amount:{$convert:{input:"$Amount",to:"double"}},
       Tax:{$convert:{input:"$Tax",to:"double"}},
       "StandingBook.发货数量":{$convert:{input:"$StandingBook.发货数量",to:"double"}},
       "StandingBook.重量":{$convert:{input:"$StandingBook.重量",to:"double"}},
       "FormulaAllParValues.Value":{$convert:{input:"$FormulaAllParValues.Value",to:"double"}},
       Id:"$Code"
    }
},
{
    $project:{
        _id:0,
        'StandingBook._id':0,
        'SettlementItem._id': 0,
        'CreatorUserId': 0,
        'StandingBook.SettlementItemDetails': 0
    }
}
])
);

but jdbc give me an error:

[2020-11-07T17:41:01,088][ERROR][logstash.inputs.jdbc     ][main][6a89ac33de18aa569ee620919af323e74f27b74ea0e732c5bfc48ff54f2f21de] Java::JavaSql::SQLException: <eval>:3:2 Expected : but found .
db.getCollection(cName).aggregate([
  ^ in <eval> at line number 3 at column number 2: var cNames=db.getCollectionNames();
cNames.forEach(cName=>{
db.getCollection(cName).aggregate([
{
    $addFields:{
       Amount:{$convert:{input:"$Amount",to:"double"}},
       Tax:{$convert:{input:"$Tax",to:"double"}},
       "StandingBook.发货数量":{$convert:{input:"$StandingBook.发货数量",to:"double"}},
       "StandingBook.重量":{$convert:{input:"$StandingBook.重量",to:"double"}},
       "FormulaAllParValues.Value":{$convert:{input:"$FormulaAllParValues.Value",to:"double"}},
       Id:"$Code"
    }
},
{
    $project:{
        _id:0,
        'StandingBook._id':0,
        'SettlementItem._id': 0,
        'CreatorUserId': 0,
        'StandingBook.SettlementItemDetails': 0
    }
}
])
);

Supply tar distribution

Any chance we can get the jars in a tar distribution as well?

The reason being is that I want to gain access to it in this docker image using a startup script.

Weirdly tar is available as a tool, but unzip isn't. While yum exists, sudo doesn't so I am unable to download them.

I am aware I can create my own Dockerfile where this wouldn't be an issue as I'd use this as a base image, but I'm trying to avoid that.

Can mongo-jdbc-driver be used in commercial software?

The license is unclear to me:

How is that, can mongodb-jdbc-driver be used in commercial software (just as JDBC driver JAR, no driver's source code modifications), or not?

Java::JavaLang::UnsupportedClassVersionError

Hi, I'm going to test sync mongo data to es using logstash-input-jdbc, I found here said The driver is compatible with Java 8, but when I use this Driver in logstash, I saw the following error logs:

Java::JavaLang::UnsupportedClassVersionError: org/graalvm/polyglot/proxy/ProxyObject has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

does this mean the driver now only compatible with JAVA 11? or is there any other solution?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.