embedded database in RunRev Livecode application
Posted: Thu Feb 10, 2011 4:21 pm
Hi,
I've just spent a long time trying to work out what Livecode's native database capability is, and I struggled to find an answer. Most of the promotional literature refers to the ability to connect with external database servers. I wanted to find out whether a relatively complex relational database could be embedded in, or stored with, a standalone livecode application.
I've eventually discovered that the inbuilt revDB database driver allows SQLite databases to be used by a standalone executable, although the .db file will need to accompany the .exe file. This information was 'hidden' in the SQLite sampler app, which is invisible to Google. Here's the front page text:
"dbSQLite is a revDB database driver which allows you to build and access SQLlite databases from within Revolution and your standalone. dbSQLite currently runs on Mac OS X and Windows XP. SQLlite is a great single-user database, and is perfect for creating desktop database applications which don't need any internet connectivity. SQLlite has many features:
1. Zero-configuration - no setup or administration needed!
2. It is very fast and compact. Supports databases up to 2 terabytes in size.
3. It is SQL92 compliant, so you can migrate to MySQL servers with a simple connection string change!
4. The complete database is stored in a single file which can be freely shared between multiple OS'es."
This is great news, I just wish I could have found it earlier! I've posted this so that hopefully I can save other new users some time.
However, I'm still unaware of what kind of database capability can be natively achieved within Livecode. Is it restricted to 2D tables, or are relational databases easy to construct through some clever use of cross-refernced arrays?! It would be convenient to be able to distribute a standalone application with the database contained in the single executable file.
I've just spent a long time trying to work out what Livecode's native database capability is, and I struggled to find an answer. Most of the promotional literature refers to the ability to connect with external database servers. I wanted to find out whether a relatively complex relational database could be embedded in, or stored with, a standalone livecode application.
I've eventually discovered that the inbuilt revDB database driver allows SQLite databases to be used by a standalone executable, although the .db file will need to accompany the .exe file. This information was 'hidden' in the SQLite sampler app, which is invisible to Google. Here's the front page text:
"dbSQLite is a revDB database driver which allows you to build and access SQLlite databases from within Revolution and your standalone. dbSQLite currently runs on Mac OS X and Windows XP. SQLlite is a great single-user database, and is perfect for creating desktop database applications which don't need any internet connectivity. SQLlite has many features:
1. Zero-configuration - no setup or administration needed!
2. It is very fast and compact. Supports databases up to 2 terabytes in size.
3. It is SQL92 compliant, so you can migrate to MySQL servers with a simple connection string change!
4. The complete database is stored in a single file which can be freely shared between multiple OS'es."
This is great news, I just wish I could have found it earlier! I've posted this so that hopefully I can save other new users some time.
However, I'm still unaware of what kind of database capability can be natively achieved within Livecode. Is it restricted to 2D tables, or are relational databases easy to construct through some clever use of cross-refernced arrays?! It would be convenient to be able to distribute a standalone application with the database contained in the single executable file.