RejectedSoftware Forums

Sign up

Cassandra Database Driver

Hey ya'll,

I'm ready to start working on this in the next month or so.

I will probably pull heavily from the code at https://github.com/rjmcguire/cassandra-d

However, I still want to try writing much of it from scratch. I know the vibe.d website has some sections on writing db drivers. Would anyone have other recommendations? Perhaps a book or online tutorial?

I might as well mention - there is another project I want to work on, so there's a chance I might grab another Cassandra driver and just set it up as a remotely hosted system.

Thanks,
Taylor

Re: Cassandra Database Driver

Am 14.12.2015 um 20:58 schrieb Taylor Gronka:

Hey ya'll,

I'm ready to start working on this in the next month or so.

I will probably pull heavily from the code at https://github.com/rjmcguire/cassandra-d

This should definitely be a good start. It's written more or less as a
literal translation of the protocol specification, so it's a good
reference. Ideal would of course be to extend/improve the existing code
base, as it's quite common in the D community that there are a lot of
projects that never get "finished". Maybe the cassandra-d repository
could be moved to its own GitHub organization, similar to what happened
to the mysql-native one.

However, I still want to try writing much of it from scratch. I know the vibe.d website has some sections on writing db drivers. Would anyone have other recommendations? Perhaps a book or online tutorial?

I think the vibe.d specific parts are quite trivial, because there is
not much more involved than sending and receiving bytes from the
connection and possibly maintaining a connection pool. AFAIR,
cassandra-d already supports a connection pool, so that would be a good
reference.

I might as well mention - there is another project I want to work on, so there's a chance I might grab another Cassandra driver and just set it up as a remotely hosted system.

Thanks,
Taylor

Re: Cassandra Database Driver

Any news?

Re: Cassandra Database Driver

Am 20.10.2019 um 17:50 schrieb Martin Brezel:

Any news?

I adapted the code base for vibe.d back in the day and just pushed a
little update, making the code work with the latest DMD and vibe.d
versions. It's available on code.dlang.org:

https://code.dlang.org/packages/cassandra-d

The main problem is that it is based on v1 of the Cassandra protocol,
whereas v4 is the latest and v3 is the oldest currently supported. Apart
from that I really have no idea of how robust or complete the
implementation is.