Provides tooling to explore and analyze ionos-loop data using DuckDB.
-
Create a
.secretsfile and configure the AWS credentials (see the*.examplefile templates).-
Credentials can be obtained from https://dcd.ionos.com/latest/#/key-management.
-
Log in using the "Loop User".
-
A prepared DuckDB database can be downloaded from S3.
pnpm download-duckdb-s3will download the notebook and DuckDB database from S3.
-
To start using DuckDB, you will need the data populated in a DuckDB database. There are various ways to get started:
-
Use the latest DuckDB Loop database from S3: see Download DuckDB database from S3.
This is the preferred way to start. This command will download the Loop DuckDB database and the prepared DuckDB notebook.
-
Build the DuckDB data from scratch: see Download S3 Loop data.
-
-
Enter the DuckDB environment to do some research:
pnpm startYou can interact with DuckDB using the terminal or the web UI.
-
Open http://localhost:4213/ in your browser. The browser UI supports persistent dickdb notebooks.
-
DuckDB can be gracefully shut down using
Ctrl+D.
-
Notebooks are preserved between launches in the
./duckdb/ui{.db,.wal}files.
To have the duckdb notebooks version in Git you can use pnpm export-duckdb-notebooks.
This will export the duckdb ui database to plain files versioned using GIT.
Notebooks contain prepared sql snippets for data evaluation.
They are kept in the repo as serialized files in duckdb/ui.
You can populate the duckdb ui database using pnpm import-duckdb-notebooks.
The DuckDB database and notebooks can be shared using S3.
pnpm upload-duckdb-s3will upload the notebook and DuckDB database to S3.
If you want to recreate the DuckDB database from the latest Loop data:
-
Fetch the Loop data to your local machine:
pnpm startThis may take several hours to complete.