Skip to main content

Additional tools for SqlAlchemy

Project description

SQL Alchemy Plus

This package provide additional package definition for SqlAlchemy that are specific for PostgreSQL and other database.

Here are the currently supported features (database supported):

  • View (PostgreSQL)
  • Materialized View (PostgreSQL)

Installation

Install SQL Alchemy Plus using pip

pip install sqlalchemyplus

Quick start

Define a View or a Materialized View programmatically

from sqlalchemy import Table, select, Column, MetaData, Integer, String
from sqlalchemyplus import View

metadata = MetaData()
table = Table('mytable',
              metadata,
              Column('key', Integer),
              Column('value', String))

select_table = table.select()
view = View(
    'myview',
    metadata,
    select_table
)

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

sqlalchemy_plus-0.1.0-py3-none-any.whl (9.9 kB view hashes)

Uploaded Python 3

Supported by

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