Skip to main content

Cuisine methods for PosgreSQL

Project description

cuisine-postgresql provides cuisine-style PostgreSQL management commands.

Installation

pip install cuisine-postgresql

Usage

from cuisine_postgresql import (postgresql_role_ensure,
                                postgresql_database_ensure)


@task
def configure_database():
        postgresql_role_ensure('user', 'pass', createdb=True)
        postgresql_database_ensure('database',
                                   owner='user',
                                   template='template0',
                                   encoding='UTF8')

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

cuisine-postgresql-0.2.1.tar.gz (4.2 kB view hashes)

Uploaded Source

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