Skip to main content

SQLAlchemy dialect for SQream Blue

Project description

Requirements

  • Python > 3.9.

  • SQLAlchemy == 1.3.18

  • SQream Blue DB-API Connector >= 1.0.42

Installation

Install from the PyPi repository using pip:

pip3.9 install --upgrade pysqream_blue_sqlalchemy

Usage

Integrating with SQLAlchemy

import sqlalchemy as sa
_access_token = "ACCESS TOKEN"
conn_str = f"sqream_blue://domain:443/database"
connect_args = {'access_token': _access_token}
engine = sa.create_engine(conn_string, connect_args=connect_args)
conn = engine.connect()
res = conn.execute("select 'Success' as Test").fetchall()
print(res)

Integrating with the IPython/Jupyter SQL Magic

%load_ext sql
%config SqlMagic.autocommit=False
%config SqlMagic.displaycon=False
%config SqlMagic.autopandas=True
%sql sqream_blue://product.isqream.com/master?access_token=<ACCESS_TOKEN>
%sql select 'Success' as Test

Connection String

sqream_blue://<domain>:443/<db_name>

Parameters

Parameter

Description

domain

Specifies the domain

port

Specifies the port number

database

Specifies the database name

Limitations

Parameterized Queries

SQream SQLAlchemy supports only the BULK INSERT statement.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysqream_blue_sqlalchemy-0.9.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysqream_blue_sqlalchemy-0.9.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file pysqream_blue_sqlalchemy-0.9.1.tar.gz.

File metadata

File hashes

Hashes for pysqream_blue_sqlalchemy-0.9.1.tar.gz
Algorithm Hash digest
SHA256 5f4593c1650a80cd66428d511fc46afdccc47628a5370d6a0205ecf1a9f8a78a
MD5 1e4675d444a2506e11309b1e7f5d6b0c
BLAKE2b-256 80da9f224218f7521fd74fc8a3ebd77276d92a9f969ce715f40ca7c28d8c6c83

See more details on using hashes here.

File details

Details for the file pysqream_blue_sqlalchemy-0.9.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pysqream_blue_sqlalchemy-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d4cef5bddceb095a19989113b763815753a5b72e20b3ea61cd442307adba998b
MD5 b8586596e62f11937b5f66c9d2ab150d
BLAKE2b-256 80240d4330dfa21f20fa16e91125efaa2a29e1f014cb873cef705cc7709b66c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page