⌘K ctrl+k
Search Shortcut cmd + k | ctrl + k
DuckDB 1.3 ドキュメント 全文検索
per page, with , order by , clip by
Results of 1 - 1 of about 1 for */│/ (0.010 sec.)
Importing Duckbox Tables – DuckDB 9414
This page is for DuckDB 1.3, which is outdated. Switch to the current version . Search Shortcut cmd + k | ctrl + k Installation Documentation Getting Started Connect Overview Concurrency Data Import Overview Data Sources CSV Files Overview ... ble above as duckbox.csv . Then, we clean it using sed : echo -n > duckbox-cleaned.csv sed -n "2s/^│ *//;s/ *│ $/ /;s/ *│ */│/p;2q" duckbox.csv >> duckbox-cleaned.csv sed "1,4d; \$ d;s/^│ *//;s/ *│ $/ /;s/ *│ */│/g" duckbox.csv >> duckbox-cleaned.cs ... community extension : INSTALL shellfs FROM community ; LOAD shellfs ; FROM read_csv ( '(sed -n "2s/^│ *//;s/ *│$//;s/ *│ */│/p;2q" duckbox.csv; ' || 'sed "1,4d;\$d;s/^│ *//;s/ *│$//;s/ *│ */│/g" duckbox.csv) |' , delim = '│' ); We can also create a ... table macro : CREATE MACRO read_duckbox ( path ) AS TABLE FROM read_csv ( printf ( '(sed -n "2s/^│ *//;s/ *│$//;s/ *│ */│/p;2q" %s; ' || 'sed "1,4d;\$d;s/^│ *//;s/ *│$//;s/ *│ */│/g" %s) |' , path , path ), delim = '│' ); Then, reading a duckbox ...
https://man.mtool.work/duckdb/1.3/guides/snippets/importing_duckbox_tables.html
PREV 1 NEXT
DuckDB 1.3 Documentation / man.mtool.work