loopbackio / loopback-connector-cassandra

Cassandra connector for the LoopBack framework.
Other
13 stars 22 forks source link

able to create non-existing keyspace #57

Closed shenghu closed 6 years ago

shenghu commented 6 years ago

Description

I'm looking at using cassandra as our database and build app using loopback. Current loopback-connector-cassandra can not create keyspace if it doesn't exist. It might be the design that it is expected to create keysapce instead of letting app to create it itself. But it will be more convenient if loopback-connector-cassandra has the capability.

So I add the following setting to DataSource setting

Please review the PR to see if it can be merged. Any change needed please let me know.

So I fixed the failure test about tuple by adding support of Tuple.

Related issues

Checklist

shenghu commented 6 years ago

@Setogit @kjdelisle can you please review this PR? Thanks. I hope to use the updated version in my project asap.

shenghu commented 6 years ago

The last code added support of nested tuple.

jannyHou commented 6 years ago

@slnode test please

dhmlau commented 6 years ago

@jannyHou , wanna double check.. it's good to merge? After merging, I can release it. Thanks.

jannyHou commented 6 years ago

@shenghu PR landed 🚢 Thank you again for all the effort of adding this important feature in the cassandra connector!

@dhmlau merged :) hope it also fixes the juggler's CI!

dhmlau commented 6 years ago

Published as 1.5.0.