dridk/sqlite2duckdb
dridk/sqlite2duckdb has 30 GitHub stars and 1 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-23 08:39 UTC. Last push 2026-08-30.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
Convert a SQLite database into a DuckDB database — tables, indexes and views, in one command
데이터README.md
Originalsqlite2duckdb
A tool for converting a sqlite database into a duckdb database
Description
Sqlite is an embedded online database designed for transactional reading and writing. Duckdb is also an embedded database, but column-oriented, designed for analytical process with a very high reading efficiency.
For more details Medium post
Installation
With uv, no installation is required. uvx downloads and runs the tool in one go:
uvx sqlite2duckdb source.db target.db
To keep it around:
uv tool install sqlite2duckdb
Or with pip:
pip install sqlite2duckdb
Usage
As a command line
usage: sqlite2duckdb [-f] <sqlite_path> <duckdb_path>
Convert Sqlite database to Duckdb database
positional arguments:
sqlite_path sqlite file path
duckdb_path duckdb file path
options:
-h, --help show this help message and exit
-f, --force overwrite the duckdb file if it already exists
-q, --quiet only report errors
--verbose report every step
-v, --version show program's version number and exit
Examples
uvx sqlite2duckdb source.db target.db
uvx sqlite2duckdb --force source.db target.db # overwrite target.db without asking
From python
from sqlite2duckdb import sqlite_to_duckdb
result = sqlite_to_duckdb("source.sqlite", "target.duckdb")
print(result.tables, result.views, result.elapsed)
What is converted
| Tables and data | ✅ |
| Primary keys, NOT NULL and UNIQUE constraints | ✅ |
| Indexes | ✅ |
| Views | ✅ best effort |
| FOREIGN KEY and CHECK constraints | ❌ |
A view whose SQL uses something duckdb has no equivalent for (MATCH, julianday()) is
skipped with a warning instead of failing the conversion.
FOREIGN KEY and CHECK are not copied, though not for lack of support: duckdb accepts and
enforces both in CREATE TABLE. It checks foreign keys row by row, so a self-referencing
table cannot be bulk loaded, and there is no ALTER TABLE ADD CONSTRAINT to add them once
the data is in.
Contributing
The project uses uv for everything:
make dev # uv sync — installs duckdb plus the test deps (pytest, faker, ruff)
make test # uv run pytest
make lint # uv run ruff check . && uv run ruff format --check .
make build # uv build
make publish # uv publish (PyPI trusted publishing, also run on tags by CI)
See also
- Harlequin: A nice duckdb IDE for your terminal
관련 프로젝트 살펴보기
불러오는 중…