Skip to main content

Plugin for dbreak to handle SQLAlchemy connections

Project description

dbreak-sqlalchemy

A plugin for dbreak that allows it to work with SQLAlchemy engine objects.

Installation

Install from PyPi using pip:

pip install dbreak-sqlalchemy

Usage

There's no need to import the plugin separately, just pass a SQLAlchemy Engine object to dbreak.show_console().

import sqlalchemy
import dbreak

# Set up a SQLite SQLAlchemy connection
connection = sqlalchemy.create_engine("sqlite://")

# Pause execution and enter the console
dbreak.start_console(connection)

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

dbreak-sqlalchemy-0.0.1.tar.gz (2.4 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page