File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -57,18 +57,21 @@ The main binaries that will be built are:
5757
5858To run the extension code, simply start the shell with ` ./build/release/duckdb ` .
5959
60- Now we can use the features from the extension directly in DuckDB. The template contains a single scalar function
61- ` vortex_duckdb() ` that takes a string arguments and returns a string:
60+ ### Writing a file
6261
62+ To write a table to a vortex file use ` COPY .. TO '...' (FORMAT VORTEX) ` :
63+ ``` sql
64+ COPY (SELECT * from generate_series(0 , 4 )) TO ' FILENAME.vortex' (FORMAT VORTEX);
6365```
64- D select vortex_duckdb('Jane') as result;
65- ┌───────────────┐
66- │ result │
67- │ varchar │
68- ├───────────────┤
69- │ VortexDuckdb Jane 🐥 │
70- └───────────────┘
66+ This will create a compressed vortex file from the sql table.
67+
68+ ### Reading a file
69+
70+ To read a table from a vortex file:
71+ ``` sql
72+ select * from read_vortex( ' FILENAME.vortex ' );
7173```
74+ This command also supports glob syntax e.g. ` read_vortex('FILE_WITH_GLOB*.vortex') ` .
7275
7376## Running the tests
7477
You can’t perform that action at this time.
0 commit comments