Quantcast
Channel: dev sniper » Database
Browsing all 3 articles
Browse latest View live

SQLAlchemy Tutorial 1 : Declarative MySQL Tables

SQLAlchemy is awesome ORM and SQL Toolkit for Python. I am using it for MySQL 5.1 with MySQL specific settings. How can i define and create MySQL tables with SQLAlchemy ORM? I have 3 Tables : -- --...

View Article


Image may be NSFW.
Clik here to view.

PostgreSQL installation and settings on Ubuntu 12.04

Updated for Ubuntu GNU/Linux 13.04 (Raring Ringtail). Install latest PostgreSQL 9.1 in console: sudo apt-get install postgresql libpq-dev PostgreSQL has a super user is called postgres. Change user to...

View Article


Image may be NSFW.
Clik here to view.

Get last order number with PostgreSQL trigger

In multi user applications it is not easy to serve a unique order or invoice numbers for each save process. You should check carefully several times on every database insert. But with database triggers...

View Article
Browsing all 3 articles
Browse latest View live