# Using gocql driver to talk to yugabyte DB

**URL:** https://forum.yugabyte.com/t/using-gocql-driver-to-talk-to-yugabyte-db/1121
**Category:** General
**Created:** [July 6, 2021, 8:09pm UTC](https://forum.yugabyte.com/t/using-gocql-driver-to-talk-to-yugabyte-db/1121 "2021-07-06T20:09:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sham\_yuga](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@sham\_yuga](https://forum.yugabyte.com/u/sham_yuga)
#### Post date: [July 6, 2021, 8:09pm UTC](https://forum.yugabyte.com/t/using-gocql-driver-to-talk-to-yugabyte-db/1121/1 "2021-07-06T20:09:06Z")

</div>

Our backend service is currently using  
gocql driver [GitHub - gocql/gocql: Package gocql implements a fast and robust Cassandra client for the Go programming language.](https://github.com/gocql/gocql)  
to talk to Apache cassandra.

We would like to migrate from Apache cassandra to yugabyte DB

1. Does the backend service need to replace GoCql driver with yugabyte driver([GitHub - yugabyte/gocql: The YugabyteDB database Go Driver for YCQL, based on the gocql Driver](https://github.com/yugabyte/gocql)) to talk to YugabyteDB? because Yugabyte Go Driver for YCQL is based on a fork of GoCQL driver.

2. Is there a DB dialect change? Because we set PROTO\_VERSION for GoCQL driver

3. Can gocql driver perform TLS communication with yugabytedb?

---

<div class="post-metadata">

### Author: ![dorian\_yugabyte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/dorian_yugabyte/32/206_2.png) [@dorian\_yugabyte](https://forum.yugabyte.com/u/dorian_yugabyte)
#### Post date: [July 7, 2021, 9:17am UTC](https://forum.yugabyte.com/t/using-gocql-driver-to-talk-to-yugabyte-db/1121/2 "2021-07-07T09:17:53Z")

</div>

Hi @sham_yuga

> [@sham\_yuga](#):
>
> Does the backend service need to replace GoCql driver with yugabyte driver([GitHub - yugabyte/gocql: YugabyteDB Go Driver for YCQL, based on the gocql Driver](https://github.com/yugabyte/gocql)) to talk to YugabyteDB? because Yugabyte Go Driver for YCQL is based on a fork of GoCQL driver.

Yes use our fork. It has support for JSONB and support for our partitioning scheme.

> [@sham\_yuga](#):
>
> Is there a DB dialect change? Because we set PROTO\_VERSION for GoCQL driver

The driver should work with no configuration change.

> [@sham\_yuga](#):
>
> Can gocql driver perform TLS communication with yugabytedb?

Yes. See [Enable client-to-server encryption | YugabyteDB Docs](https://docs.yugabyte.com/latest/secure/tls-encryption/client-to-server/)
