wiki:DataBaseInstalation
Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Version 1 (modified by jorge.vargas, 13 years ago) (diff)

--

This page is inteded to be use by either SQLObject or SQLAlhemy and even though it's not directly TG related it's a must.

NOTE: please note that even though SQLALchemy support is now primitive it's the way to go in the future.

For now it's just a bunch of links because I intent it to be created by everyone

From  http://www.sqlobject.org/SQLObject.html#dbconnection-database-connections

SQLObject Supported Backends

  • MySQL
  • Postgres
  • SQLite
  • Firebird
  • Sybase
  • MAX DB
  • MS SQL Server

From  http://www.sqlalchemy.org/trac/browser/sqlalchemy/trunk/lib/sqlalchemy/databases

SQLAlchemy Supported Backends

  • firebird
  • mssql
  • mysql
  • oracle
  • postgres
  • sqlite

First we'll assume you already have a database backend install and working, since if you want a ORM you are probably sick of SQL and therefore have a funtional database :)

The process of installing a db is very diferent for each one so please [www.google.com google] it.

So now that we have a working db we need some python bindings for it, that is a library that lets me interact to it from python.

Linux

There many ways to install

  • look if the package is in your package manager.
  • if not then make a package for it.
  • look if it is available from  http://www.python.org/pypi and easy_install it.
  • build from source.

Which way to go depends on you, although most distros prefer to manage all install, easy_install is probably the easiest way.

MySql

You will need  mysqldb it may be call mysql-python on your package manager and it is call that way in pypi.

NOTE if you easy_install this you will need a C Compiler and mysql include/lib dirs which may not be install by the default package on your distro.

SqlLite

TODO

PostgreSql

TODO

Windows

MySql

As of May 3 2006 there is NO installer for the lastest version

SqlLite

TODO

PostgreSql

TODO

MacOS

MySql

TODO

SqlLite

TODO

PostgreSql

TODO