{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/17"},{"label":"Database","url":"https://skillfed.io/packages/category/database/4"},{"label":"Database Engines/Servers","url":"https://skillfed.io/packages/category/database-database-engines-servers"}],"enrichment":{"capability":"Adds CreateView and DropView SQL constructs to SQLAlchemy, enabling programmatic creation and removal of database views through SQLAlchemy's expression language.","skillfed_tags":["sqlalchemy-extension","schema-management"],"use_cases":["Define database views in Python code alongside table definitions for schema migrations and setup scripts","Conditionally create or replace views with OR REPLACE or IF EXISTS flags in application initialization","Drop views safely with CASCADE when cleaning up or resetting a database schema","Introspect existing views using SQLAlchemy's Table object and regenerate their definitions programmatically"],"what_it_does":"sqlalchemy-views extends SQLAlchemy with two new SQL constructs\u2014CreateView and DropView\u2014that let you define and manipulate database views using SQLAlchemy's expression API instead of raw SQL strings. It wraps the view definition (typically a SELECT statement) and compiles it to the appropriate CREATE VIEW or DROP VIEW SQL for execution.\n\nThe package is designed for developers who want to manage views programmatically within SQLAlchemy applications, supporting common options like OR REPLACE, IF EXISTS, CASCADE, and dialect-specific view options. It relies entirely on sqlalchemy as its runtime dependency and has remained stable because it builds on SQLAlchemy's core, stable APIs rather than internal details.","worth_installing":"Yes, if you need to manage database views within SQLAlchemy code. The package is small, stable, and has no known vulnerabilities. Install friction is minimal (one dependency). The main caveat is that it supports only a core subset of SQL dialects\u2014if your database uses nonstandard CREATE/DROP VIEW syntax, you may need to fall back to raw SQL or check whether your dialect is covered."},"id":"sqlalchemy-views","links":{"html":"https://skillfed.io/packages/sqlalchemy-views","md":"https://skillfed.io/packages/sqlalchemy-views.md","pypi":"https://pypi.org/project/sqlalchemy-views/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2023-02-18","license_spdx":null,"license_treatment":"permissive","name":"sqlalchemy-views","python_support":"unspecified","summary":"Adds CreateView and DropView constructs to SQLAlchemy"},"popularity":{"monthly_downloads":150750,"position":10955,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.2"}
