Compatible Scala driver for Amazon DocumentDB - scala

Do you know a Scala driver to MongoDB, which is also compatible to Amazon DocumentDB? In theory they all should be compatible, I am interested what works in practice. In particular, I plan to use reactivemongo.

https://mongodb.github.io/mongo-scala-driver/ is compatible with Amazon DocumentDB.

Main point is to properly use the RDS certificate (cannot be tested locally w/o tunnel), as indicated in the documentation.
mongodb.uri = "mongodb://${USER}:${PASSWORD}#${DOCDB_CLUSTER}${AWS_REGION}.docdb.amazonaws.com:27017/${DB_NAME}?ssl=true&keyStore=file:///path/on/local/fs/to/rds-ca-2015-root.jks&keyStorePassword=${KEYSTORE_PASS}&keyStoreType=JKS"

Related

Does spark-cassandra-connector support built-in load balanceing?

I have Scala-based application and I need to connect it to Cassandra.
I found DataStax Enterprise drivers very useful in this regard, and those have a lot of cool features like in-built load balancing for Cassandra and that is really import for me.
Unfortunately there isn't any native DSE drivers for Scala. I know we can use DSE Java drivers, but in that case, we loose a lot of Scala cool features.
I also found spark-cassandra-connector that's built by Datastax as well, but this built-in load balancing thing is really important to me and I don't know if spark-cassandra-connector support it or not.
In the Java-based applications using DSE Java driver, I need to config the built-in load balancer in a configuration file as below:
datastax-java-driver.basic.load-balancing-policy {
class = DefaultLoadBalancingPolicy
}
I don't know the equivalent way in Scala using spark-cassandra-connector and I'm not even sure if it is possible or not.
Any help would be appreciated. Thanks.
In the Scala you can just use the Java driver - out of the box you don't have only support for base Scala types, but you can solve this problem by importing the java-driver-scala-extras into your project (as source code) - it works for at least for driver 3.x. Another issue is the support for Option, but this could done via Java's optional that has an extra codec in Java driver.
Regarding the customization of the driver - that part should work with Scala without change. Regarding the support of default policy in Spark - Spark Cassandra connector has a separate policy for a special reason - it's close to the Java's default policy, but with specifics for Spark.

Is there a PipelineDB package for Laravel or Native PHP?

I was asking for PipelineDB if there is a package for laravel or Native PHP, so I can use it in my current project?
PipelineDB actually does not have its own special client libraries but instead maintains compatibility with all PostgreSQL clients. Any client that works with PostgreSQL will seamlessly work with PipelineDB, so you're free to use the PHP/PostgreSQL client of your choice.
Please see the clients section of the PipelineDB docs for more information.

Using oreintdb in production with jdbc

I am planning to use orientdb in production using the jdbc drive so i need confirm some points
is jdbc driver can give all the orientdb Features like (transaction and links ...etc) or using the the java api is the best choice
I noticed that you have spring data implementation in the orientdb github is it ready to use in the production
At this link a discussion on the issue that you wrote.
in general, JDBC driver supports only a subset of OrientDB, only the part you can use with commands.
If you're a Java developer, I suggest you to use the Java Graph API: http://orientdb.com/docs/last/Graph-Database-Tinkerpop.html

Play Framework 2.3 run driver specific evolutions

In local development and in test I am using an in memory h2 driver. In production I am using a postgresql driver. Im having issues where i need to run a evolution query just for postgresql. Is there some way to do this? Thanks!
I'll rather suggest to use more appropriate tool to deal with database evolution/migration.
checkout http://flywaydb.org/

MongoDB and Mongolab.com

Recently I discovered the power of noSQL database MongoDB. After a lot of trial and error I was able to install it on my pc along with wampserver. Its running smoothly. Now the question I would like to ask is, that if I want to integrate the MongoDB service provided by Mongolab on my shared hosting plan, is there any class available that helps me connect to the database? Like a php class version of the driver for php and mongodb. As it is not possible to install the driver on my hosting, because of no root access. So is there a raw class available as an alternative to the driver dll?
If you can't install the driver, then the REST interface provided by MongoLab is your best bet - any language that can send/receive a HTTP request can use REST:
http://support.mongolab.com/entries/20433053-rest-api-for-mongodb