masumsoft / express-cassandra

Cassandra ORM/ODM/OGM for NodeJS with support for Apache Cassandra, ScyllaDB, Datastax Enterprise, Elassandra & JanusGraph.
http://express-cassandra.readthedocs.io
GNU Lesser General Public License v3.0
228 stars 67 forks source link

Multiple cassandra connections for different keyspaces #225

Open luvsaxenawinzo opened 3 years ago

luvsaxenawinzo commented 3 years ago

Hi, I have different keyspaces in my single cassandra cluster. I have created models in a separate directory for every keyspace (for loading) so I can load them by providing their path in setDirectory method while creating connection. But this is not working. Looks like directory is a static variable which if changed gets changed in the earlier connections objects as well. I am using the version 2.5.0.