


- #IMPORT FROM DBSCHEMA FILE INFORMIX INSTALL#
- #IMPORT FROM DBSCHEMA FILE INFORMIX PORTABLE#
- #IMPORT FROM DBSCHEMA FILE INFORMIX CODE#
This file is locked every time it is accessed. Here are examples of connection strings for specific types of supported back-end databases (in all cases, we assume the database is running from localhost on its default port and is named "test"): ndb that in SQLite the database consists of a single file.
#IMPORT FROM DBSCHEMA FILE INFORMIX CODE#
The connection string is the only web2py code that depends on a specific back-end database. The constructor of DAL requires a single argument, the connection string. You are free to give it a different name.
#IMPORT FROM DBSCHEMA FILE INFORMIX INSTALL#
To use any other database back-end, run from the source distribution and install the appropriate driver for the required back end.ĭb = DAL ( 'sqlite://storage.sqlite', pool_size = 0 )ĭb is not a keyword it is a local variable that stores the connection object DAL. The Mac binary distribution works out of the box with SQLite. The Windows binary distribution works out of the box with SQLite, MSSQL, PostgreSQL and MySQL. The Gotchas section at the end of this chapter has some more information about specific databases. Google NoSQL is treated as a particular case in Chapter 13. Please check on the web2py web site and mailing list for more recent adapters. A partial list of supported databases is show in the table below.
#IMPORT FROM DBSCHEMA FILE INFORMIX PORTABLE#
The DAL dynamically generates the SQL in real time using the specified dialect for the database back end, so that you do not have to write SQL code or learn different SQL dialects (the term SQL is used generically), and the application will be portable among different types of databases.
