SQLite
Table of Contents
The target-sqlite Meltano loader sends data into SQLite after it was pulled from a source using an extractor.
-
- Repository: https://github.com/MeltanoLabs/target-sqlite
-
-
-
-
-
-
-
- Maintainer: Meltano Community
- Meltano Stats:
-
-
Alternative variants #
Multiple
variants
of target-sqlite are available.
This document describes the default meltanolabs variant,
which is recommended for new users.
Alternative variants are:
Getting Started #
Prerequisites #
If you haven't already, follow the initial steps of the Getting Started guide:
Installation and configuration #
Using the Command Line Interface #
-
Add the
target-sqliteloader to your project usingmeltano add:meltano add loader target-sqlite -
Configure the settings below using
meltano config.
Next steps #
Follow the remaining steps of the Getting Started guide:
If you run into any issues, learn how to get help.
Capabilities #
Settings #
target-sqlite requires the
configuration
of the following settings:
These and other supported settings are documented below. To quickly find the setting you're looking for, use the Table of Contents at the top of the page.
Database Name (database)
#
-
Environment variable:
TARGET_SQLITE_DATABASE - Default:
warehouse
Name of the SQLite database file to be used or created, relative to the project root.
The .db extension is optional and will be added automatically when omitted.
How to use #
Manage this setting using
meltano config or an
environment variable:
meltano config target-sqlite set database <database>
export TARGET_SQLITE_DATABASE=<database>
Batch Size (batch_size)
#
-
Environment variable:
TARGET_SQLITE_BATCH_SIZE - Default:
50
How many records are sent to SQLite at a time.
How to use #
Manage this setting using
meltano config or an
environment variable:
meltano config target-sqlite set batch_size 50
export TARGET_SQLITE_BATCH_SIZE=50
Timestamp Column (timestamp_column)
#
-
Environment variable:
TARGET_SQLITE_TIMESTAMP_COLUMN - Default:
__loaded_at
Name of the column used for recording the timestamp when data are loaded to SQLite.
How to use #
Manage this setting using
meltano config or an
environment variable:
meltano config target-sqlite set timestamp_column <timestamp_column>
export TARGET_SQLITE_TIMESTAMP_COLUMN=<timestamp_column>Looking for help? #
If you're having trouble getting the
target-sqlite loader to work, look for an
existing issue in its repository, file a new issue,
or
join the Meltano Slack community
and ask for help in the #plugins-general channel.
Found an issue on this page? #
This page is generated from a YAML file that you can contribute changes to. Edit it on GitHub!