TopMind Vertica Connector Wrapper
Project description
Customized vertica connector
The Python Wrapper to vertica_python lib for reconnectiong across server nodes
Usage
pip3 install vertica-connector-talenttech
import os
import json
from vconnector.vertica_connector import VerticaConnector
user = "test_user",
password = "test_password"
database = "test_database"
vertica_configs = json.loads(os.getenv("VERTICA_CONFIGS"))
with VerticaConnector(user=user,
password=password,
database=database,
vertica_configs=vertica_configs) as cnx:
cur = cnx.cursor()
sql = "SELECT 1"
cur.execute(sql)
VERTICA_CONFIGS var structure
{"host": <VERTICA_HOST>,
"port": <VERTICA_PORT>,
"backup_server_node": [<SERVER_NODE_1>, <SERVER_NODE_2>, <SERVER_NODE_3>}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for vertica-connector-talenttech-1.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3733cc08c456d7f2a3d9e635eaee5e4b5013d2d661fb5e03767ad2c60ef37e31 |
|
MD5 | 52a38fa7717f1aae65aa285dc3870edf |
|
BLAKE2b-256 | e522baadd9c4476c37a67a7a8b3f403ee274fd18aa54bed4c45463c624e374b1 |
Close
Hashes for vertica_connector_talenttech-1.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ec3a8c570b6fdaf1559a1ff1a03576f9965ef04dfc5ef7cc63b818396f45d2d |
|
MD5 | e651ae711fa3356b2933ba7aca040e61 |
|
BLAKE2b-256 | 206b9bd417c648d7310e078a18eefd5218aa3168f94279ff996f7822778c6342 |