Include pysqlite2 into Python 2.5?
Josiah Carlson
jcarlson at uci.edu
Thu Oct 21 13:49:14 EDT 2004
> from sql import sql
> sqllite = sql.Engine()
> my_database = sqllite.Database('c:/mydatabese.db', 'user_id', 'password')
>
> But you if you were using another engine, you'd only need to change this to:
>
> from sql import sql
> from other_engine import other_engine
> other_database = sql.Engine(other_engine)
> my_database = other_database.Database('c:/myotherdatabese.db',
> 'user_id', 'password')
Remembering, of course, that other databases aren't file based like
sqlite. Such a package would be neat though.
- Josiah
More information about the Python-list
mailing list