Tornado – Options

You must have observed, all this while we have written tornado based applications that listen on port 8888, and in MySQL post, we had predefined our database connection details (like server, username, password etc). But what if we need to change these details based on modules or applications or configurations? Tornado, provides this with a … Continue reading Tornado – Options

Tornado – Database MySQL Client Wrapper

Tornado provides a simple MySQL wrapper for performing database operations. Class tornado.databse.Connection acts as a wrapper over MySQLdb DB-API connection. Consider you have a MySQL installed on your system and you create a DB 'mydb' with table 'post' and records as below: mysql> use mydb Database changed mysql> create table post (Id int, Title char(50), … Continue reading Tornado – Database MySQL Client Wrapper