
Component family |
Databases |
|
Function |
tSQLiteInput reads a database |
|
Purpose |
tSQLiteInput executes a DB query |
|
Basic settings |
Property type |
Either Built-in or Repository. Since version 5.6, both the Built-In mode and the Repository mode are |
|
|
Built-in: No property data stored |
|
|
Repository: Select the repository |
|
Use an existing connection |
Select this check box and in the Component List click the NoteWhen a Job contains the parent Job and the child Job, if you need to share an existing
For an example about how to share a database connection across Job levels, see |
|
![]() |
Click this icon to open a database connection wizard and store the For more information about setting up and storing database |
|
Database |
Filepath to the SQLite database file. |
|
Schema and Edit |
A schema is a row description. It defines the number of fields to be processed and passed on Since version 5.6, both the Built-In mode and the Repository mode are This component offers the advantage of the dynamic schema feature. This allows you to This dynamic schema feature is designed for the purpose of retrieving unknown columns |
|
|
Built-in: The schema is created |
|
|
Repository: The schema already |
Click Edit schema to make changes to the schema. If the
|
||
|
Query type |
Either Built-in or Repository. Since version 5.6, both the Built-In mode and the Repository mode are |
|
Query |
If your query is not stored in the Repository, type in your DB query paying Warning
If using the dynamic schema feature, |
Advanced settings |
Trim all the String/Char columns |
Select this check box to remove leading and trailing whitespace |
|
Trim column |
Remove leading and trailing whitespace from defined |
|
tStatCatcher |
Select this check box to collect log data at the component |
Dynamic settings |
Click the [+] button to add a row in the table and fill The Dynamic settings table is available only when the For more information on Dynamic settings and context |
|
Global Variables |
NB_LINE: the number of rows processed. This is an After
QUERY: the SQL query statement being processed. This is a ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see Talend Studio |
|
Usage |
This component is standalone as it includes the SQLite engine. |
|
Log4j |
The activity of this component can be logged using the log4j feature. For more information on this feature, see Talend Studio User For more information on the log4j logging levels, see the Apache documentation at http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html. |
This scenario describes a rather simple job which uses a select statement based on a
filter to extract rows from a source SQLite Database and feed an output SQLite table.

-
Drop from the Palette, a tSQLiteInput and a tSQLiteOutput component from the Palette to the design workspace.
-
Connect the input to the output using a row main link.
-
On the tSQLiteInput Basic settings, type in
or browse to the SQLite Database input file.

-
The file contains hundreds of lines and includes an ip column which the select statement will based on
-
On the tSQLite Basic settings, edit the
schema for it to match the table structure.

-
In the Query field, type in your select
statement based on the ip column. -
On the tSQLiteOutput component Basic settings panel, select the Database filepath.

-
Type in the Table to be fed with the
selected data. -
Select the Action on table and Action on Data. In this use case, the action on table
is Drop and create and the action on data is
Insert. -
The schema should be synchronized with the input schema.
-
Save the job and run it.

The data queried is returned in the defined SQLite file.
For an example of how to use dynamic schemas with Input
components, see Scenario 4: Writing dynamic columns from a MySQL database to an output file.