mirror of
https://github.com/hanzo-ds/connect.git
synced 2026-10-30 20:31:24 +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.
20 lines
673 B
Python
20 lines
673 B
Python
import datastore_connect
|
|
|
|
|
|
def main():
|
|
print(f'\nDatastore Connect installed version: {datastore_connect.version()}')
|
|
client = datastore_connect.get_client(host='play.hanzo.ai',
|
|
username='play',
|
|
password='datastore',
|
|
port=443)
|
|
print(f'Datastore Play current version and timezone: {client.server_version} ({client.server_tz})')
|
|
result = client.query('SHOW DATABASES')
|
|
print('Datastore play Databases:')
|
|
for row in result.result_set:
|
|
print(f' {row[0]}')
|
|
client.close()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|