This method is no longer supported. Use a java.sql.BasicDataSource or com.screenscraper.datamanager.SshDataSource instead. See the SqlDataManager.buildSchemas page for examples.
Create a SQLite data manager object.
- session The scraping session that the data manager should be attached to.
- file The file path of the sqlite file, as a string.
- username Username that is being used to access the database, as a string.
- password The username's associated password, as a string.
Returns a SqlDataManager object. If an error is experienced it will be thrown.
|5.0||Available for professional and enterprise editions.|
In order to create the Sqlite data manager you will need to make sure to install the appropriate jdbc driver. This can be done by downloading the Sqlite JDBC driver and placing it in the lib/ext folder in the screen-scraper installation directory.
Create a SQLite Data Manager
// Set Variables
file = "c:/db/mydb.sqlite";
username = "user";
password = "pwrd";
// Get Sqlite datamanager
dm = DataManagerFactory.getSqliteDataManager( session, file, username, password);