Skip to content

Commit

Permalink
Merge pull request #791 from phenobarbital/scylla-connector
Browse files Browse the repository at this point in the history
new scylladb connector
  • Loading branch information
phenobarbital authored Sep 25, 2023
2 parents 2565c99 + 52a69c4 commit 78e01c7
Show file tree
Hide file tree
Showing 8 changed files with 1,115 additions and 10 deletions.
6 changes: 4 additions & 2 deletions asyncdb/drivers/cassandra.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import asyncio
from typing import (
Any,
List,
Union
)
from ssl import PROTOCOL_TLSv1
Expand Down Expand Up @@ -55,7 +54,10 @@ def pandas_factory(colnames, rows):


def record_factory(colnames, rows):
return Recordset(result=[dict(zip(colnames, values)) for values in rows], columns=colnames)
return Recordset(
result=[dict(zip(colnames, values)) for values in rows],
columns=colnames
)


class cassandra(InitDriver):
Expand Down
1 change: 1 addition & 0 deletions asyncdb/drivers/influx.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ async def write(self, data: Union[list, dict], bucket: str, **kwargs):
) from err

save = write
copy = write

async def query(self, sentence: str, frmt: str = 'native', params: dict = None, **kwargs):
self._result = None
Expand Down
Loading

0 comments on commit 78e01c7

Please sign in to comment.