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.3.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.3-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysqream_blue_sqlalchemy-0.9.3.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for pysqream_blue_sqlalchemy-0.9.3.tar.gz
Algorithm Hash digest
SHA256 0674bc2235d733edc833511e78f339409a8f29ad72647e078ad8f2609c93dd79
MD5 4fd863f19ec0838bcae77e6fcb631c2c
BLAKE2b-256 ea796d90b82292d3281704d51825b35f459dbc558187605f21485b5c293e5d33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pysqream_blue_sqlalchemy-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 07db04c06e57b7d490557a121ad53c2e3d3a3d10bd47d24a004dce9c06415f15
MD5 1edbb2297bf9bba4845b367283b11253
BLAKE2b-256 b6f299b9daad296bb841e77215f33fd07bebd43183718e830b38064dc476d599

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