revSetDatabaseDriverPath | |||||||
Type | command | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Associations | database library | ||||||
Summary | Specifies where the Database library should look for database drivers. | ||||||
Introduced | 2.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Parameters |
| ||||||
Example |
| ||||||
Related | Property: defaultFolder Message: startup, preOpenStack Library: Database library Keyword: field Object: field, stack Function: specialFolderPath, revOpenDatabase, revGetDatabaseDriverPath Glossary: LiveCode custom library, property inspector, handler, database, Standalone Application Settings, standalone application, database driver, function, command | ||||||
Security | disk, network | ||||||
Description | Use the revSetDatabaseDriverPath command if you want to place the database drivers your application uses somewhere other than the same folder as the application. To use an external SQL database, the Database library needs to communicate via a database driver for the database you're using. By default, the Database library looks for drivers in the same folder as the application. If you try to work with the Database library, and the database driver is not where LiveCode expects it to be, a script error will result. If the database drivers your application needs are installed in a different folder, use the revSetDatabaseDriverPath command before you use any other commands or functions in the Database library, and before you display a field that you've set up to show data from a database (using the Database pane in the field's property inspector). Usually, the best place for this command is in your stack's startup or preOpenStack handler.
| ||||||
Tags | database |