Skip to content

Commit 3886b0a

Browse files
committed
docs
1 parent 8e779ea commit 3886b0a

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,21 @@ The main binaries that will be built are:
5757

5858
To 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

0 commit comments

Comments
 (0)