No project description provided
Project description
duckdb-utils: CLI tool and Python library for manipulating DuckDB databases
Inspired by [sqlite-utils]
CLI
Usage: duckdb-utils [OPTIONS] COMMAND [ARGS]...
Commands for interacting with a DuckDB database
Options:
--version Show the version and exit.
-h, --help Show this message and exit.
Commands:
query*
create-table Add a table with the specified columns.
insert Insert records from FILE into a table, creating the table...
tables List the tables in the database
views List the views in the database
duckdb-utils create-table
Usage: duckdb-utils create-table [OPTIONS] PATH TABLE COLUMNS...
Add a table with the specified columns. Columns should be specified using
name, type pairs, for example:
duckdb-utils create-table my.db people \
id integer \
name text \
height float \
photo blob --pk id
Valid column types are text, integer, float and blob.
Options:
--pk TEXT Column to use as primary key
--not-null TEXT Columns that should be created as NOT NULL
--default <TEXT TEXT>... Default value that should be set for a column
--fk <TEXT TEXT TEXT>... Column, other table, other column to set as a
foreign key
--ignore If table already exists, do nothing
--replace If table already exists, replace it
--transform If table already exists, try to transform the
schema
--load-extension TEXT Path to SQLite extension, with optional
:entrypoint
--strict Apply STRICT mode to created table
-h, --help Show this message and exit.
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
duckdb_utils-0.1.0a0.tar.gz
(45.2 kB
view details)
Built Distribution
File details
Details for the file duckdb_utils-0.1.0a0.tar.gz
.
File metadata
- Download URL: duckdb_utils-0.1.0a0.tar.gz
- Upload date:
- Size: 45.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63670240822afc5e5184607e363c9196c6e30c124aaec5eff47c57bda4e0a579 |
|
MD5 | 0b23d100e9795554bfaf8e994d7c801d |
|
BLAKE2b-256 | 54b26c2c2b1c9fcb7ffd8d05a62bd9fef0735d739341bb6288880bab5633216f |
File details
Details for the file duckdb_utils-0.1.0a0-py3-none-any.whl
.
File metadata
- Download URL: duckdb_utils-0.1.0a0-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a10269f10a88f364673286e90271e5da55dc8560d6a437a843c61c98f19901c |
|
MD5 | a96994983d921a9e2c16cce6e76c8184 |
|
BLAKE2b-256 | 93728ad5e0fb0fd803e2eec7865b73045c924ca3151073fb198ad5ac29670f4e |