Client APIs
Non-Interactive Usage
To read/process a file and exit immediately, pipe the file contents in to `duckdb`:  
```bash
duckdb < select_example.sql
```  
To execute a command with SQL text passed in directly from the command line, call `duckdb` with two arguments: the database location (or `:memory:`), and a string with the SQL statement to execute.  
```bash
duckdb :memory: "SELECT 42 AS the_answer"
```