With SQLite, you can write your datasources as SQL queries. You can use the queries in datasources to create a select statement and get the data from the tables you need to use in your file. You can use it directly in the file, where the UI component configuration is or you can use it as a global datasource.
When setting up a sqlite datasource, you have use the datasource in the following ways:
- In your file as a locally configured datasource under the datasource section.
- In the global datasource file, that will allow you to use it across all the files. The global datasource files are located under the datasources folder in .
View common examples of using sqlite below, you can use these as a guideline to configure the same in your solutions.
sqlite in a jig file
Datasource with type sqlite to select name, and email from the employee's table and to display the list of employees.
Example: See the full example on GitHub.
sqlite as a global datasource
Datasource with type sqlite as global datasource to select name, and email from the employee's table and to display the list of employees.
Example: See the full example on Github.