Singer target for StarRocks, built with the Meltano Singer SDK.
Project description
target-starrocks
target-starrocks is a Singer target for StarRocks.
Build with the Meltano Target SDK.
Installation
Install from PyPI:
uv tool install target-starrocks
Install from GitHub:
uv tool install git+https://github.com/reservoir-data/target-starrocks.git@main
Supported Python Versions
- 3.13
- 3.14
Configuration
Accepted Config Options
| Setting | Required | Default | Description |
|---|---|---|---|
| user | False | None | User for the StarRocks database |
| password | False | None | Password for the StarRocks database |
| host | False | None | Host for the StarRocks database |
| port | False | 9030 | Port for the StarRocks database |
| database | True | None | Database name for the StarRocks database |
Additional Config Options
The following built-in configuration options are also supported:
| Setting | Required | Default | Description |
|---|---|---|---|
| default_target_schema | False | None | The default target database schema name to use for all streams. |
| hard_delete | False | 0 | Hard delete records. |
| add_record_metadata | False | None | Whether to add metadata fields to records. |
| load_method | False | TargetLoadMethods.APPEND_ONLY | The method to use when loading data into the destination. append-only will always write all input records whether that records already exists or not. upsert will update existing records and insert new records. overwrite will delete all existing records and insert all input records. |
| batch_size_rows | False | None | Maximum number of rows in each batch. |
| process_activate_version_messages | False | 1 | Whether to process ACTIVATE_VERSION messages. |
| validate_records | False | 1 | Whether to validate the schema of the incoming streams. |
| stream_maps | False | None | Config object for stream maps capability. For more information check out Stream Maps. |
| stream_map_config | False | None | User-defined config values to be used within map expressions. |
| faker_config | False | None | Config for the Faker instance variable fake used within map expressions. Only applicable if the plugin specifies faker as an addtional dependency (through the singer-sdk faker extra or directly). |
| faker_config.seed | False | None | Value to seed the Faker generator for deterministic output: https://faker.readthedocs.io/en/master/#seeding-the-generator |
| faker_config.locale | False | None | One or more LCID locale strings to produce localized output for: https://faker.readthedocs.io/en/master/#localization |
| flattening_enabled | False | None | 'True' to enable schema flattening and automatically expand nested properties. |
| flattening_max_depth | False | None | The max depth to flatten schemas. |
A full list of supported settings and capabilities is available by running: target-starrocks --about
Configure using environment variables
This Singer target will automatically import any environment variables within the working directory's
.env if the --config=ENV is provided, such that config values will be considered if a matching
environment variable is set either in the terminal context or in the .env file.
Authentication and Authorization
Usage
You can easily run target-starrocks by itself or in a pipeline using Meltano.
Executing the Target Directly
target-starrocks --version
target-starrocks --help
# Test using the "Smoke Test" tap:
tap-smoke-test | target-starrocks --config /path/to/target-starrocks-config.json
Developer Resources
Follow these instructions to contribute to this project.
Initialize your Development Environment
curl -LsSf https://astral.sh/uv/install.sh | sh # or see https://docs.astral.sh/uv/getting-started/installation/
uv sync
Create and Run Tests
Create tests within the tests subfolder and
then run:
uv run pytest
You can also test the target-starrocks CLI interface directly using uv run:
uv run target-starrocks --help
Testing with Meltano
Note: This target will work in any Singer environment and does not require Meltano. Examples here are for convenience and to streamline end-to-end orchestration scenarios.
Next, install Meltano (if you haven't already) and any needed plugins:
# Install meltano
uv tool install meltano
meltano config meltano set venv.backend uv
# Initialize meltano within this directory
cd target-starrocks
meltano install
Now you can test and orchestrate using Meltano:
# Test invocation:
meltano invoke target-starrocks --version
# OR run a test EL pipeline with the Smoke Test sample tap:
meltano run tap-smoke-test target-starrocks
SDK Dev Guide
See the dev guide for more instructions on how to use the Meltano Singer SDK to develop your own Singer taps and targets.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file target_starrocks-0.0.1a5.tar.gz.
File metadata
- Download URL: target_starrocks-0.0.1a5.tar.gz
- Upload date:
- Size: 81.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41c0877d85ea95a64ed5479e258c341c1e27124c35ba3e11e784ac3b6743eab7
|
|
| MD5 |
56bfb3ff822703cf2b8cf923aa85563c
|
|
| BLAKE2b-256 |
c319798e967e3587ef8f5a1a111de736607f4b84e4ee4099ba69efd62770e601
|
Provenance
The following attestation bundles were made for target_starrocks-0.0.1a5.tar.gz:
Publisher:
build.yml on reservoir-data/target-starrocks
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
target_starrocks-0.0.1a5.tar.gz -
Subject digest:
41c0877d85ea95a64ed5479e258c341c1e27124c35ba3e11e784ac3b6743eab7 - Sigstore transparency entry: 636719704
- Sigstore integration time:
-
Permalink:
reservoir-data/target-starrocks@a3ed41d7d7d5383f0c02d3ce0279d24adb0f4e6a -
Branch / Tag:
refs/tags/v0.0.1a5 - Owner: https://github.com/reservoir-data
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@a3ed41d7d7d5383f0c02d3ce0279d24adb0f4e6a -
Trigger Event:
push
-
Statement type:
File details
Details for the file target_starrocks-0.0.1a5-py3-none-any.whl.
File metadata
- Download URL: target_starrocks-0.0.1a5-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78eb8859d88dc06ea2dfa956aff4ffb3f6a5f42185e4446e0a1435ff8634d905
|
|
| MD5 |
f5c05a1854c2799a6d65712344e64741
|
|
| BLAKE2b-256 |
b0434c7664db2cd6e0f44676a528b0b8cf758b530efcf95206dde0c9aa48d9a5
|
Provenance
The following attestation bundles were made for target_starrocks-0.0.1a5-py3-none-any.whl:
Publisher:
build.yml on reservoir-data/target-starrocks
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
target_starrocks-0.0.1a5-py3-none-any.whl -
Subject digest:
78eb8859d88dc06ea2dfa956aff4ffb3f6a5f42185e4446e0a1435ff8634d905 - Sigstore transparency entry: 636719722
- Sigstore integration time:
-
Permalink:
reservoir-data/target-starrocks@a3ed41d7d7d5383f0c02d3ce0279d24adb0f4e6a -
Branch / Tag:
refs/tags/v0.0.1a5 - Owner: https://github.com/reservoir-data
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@a3ed41d7d7d5383f0c02d3ce0279d24adb0f4e6a -
Trigger Event:
push
-
Statement type: