mirror of
https://github.com/hanzo-ds/driver.git
synced 2026-10-30 20:32:40 +00:00
The wire protocol was the last holdout and it was not cosmetic: the Hanzo Datastore server reads X-Datastore-User, and answers a request bearing X-ClickHouse-User with 401. Verified against the live server, both directions. So a client still sending the old headers is not merely off-brand, it cannot authenticate over HTTP. Everything else follows: types, dialects, error modules, docstrings and doc links now name Datastore, and doc URLs point at docs.hanzo.ai/datastore rather than the upstream vendor's site. Zero occurrences of the old name remain. Still cut from the pinned upstream version, so behaviour is unchanged.
9 lines
229 B
Python
9 lines
229 B
Python
import sys
|
|
from datastore_driver import Client
|
|
|
|
query = "SELECT * FROM perftest.ontime WHERE FlightDate < '{}'".format(sys.argv[1])
|
|
client = Client.from_url('datastore://localhost')
|
|
|
|
for row in client.execute_iter(query):
|
|
pass
|