Skip to content

DuckDB Files - Basics #634

Discussion options

You must be logged in to vote

Glad you opened this discussion - I started my journey with Data about 18 years ago in nearly the same way.

The short answer is, you can invoke Harlequin with a database filename, and Harlequin will create the persistent database for you. From your shell (terminal or command-line), assuming you are in a directory with your source data files and where you want to save the DuckDB database file:

harlequin my_database_name.duckdb -f .

Then inside Harlequin, you can execute any DDL queries to create tables in your new database:

create table my_first_db_table as (
  select * from 'my_csv_file.csv'
)

Figured this would be useful for others, also, so I recorded a quick demo video, if that helps!
h…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@tconbeer
Comment options

@ducklingQuackQuack
Comment options

@tconbeer
Comment options

@tconbeer
Comment options

Answer selected by ducklingQuackQuack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants