---
title: "Query tools: corasql and drivers"
description: "Tools for running SQL against CoraDB: the corasql command-line interpreter, and the drivers (JDBC, Node.js, PHP, .NET, Python, C)."
url: "https://www.coradb.ai/manual/qrytool.html"
markdown_url: "https://www.coradb.ai/manual/markdown/qrytool.md"
product: "CoraDB"
version: "1.0"
keywords: "coradb query tool, corasql, run sql coradb, coradb command line client, coradb drivers, coradb jdbc, coradb python, coradb node.js"
---

# Query tools: corasql and drivers

## corasql

corasql is the command-line SQL interpreter installed with CoraDB. It runs SQL and graph queries interactively or from files, and offers session commands for schemas, plans, traces and parameters. The [corasql interpreter](https://www.coradb.ai/manual/corasql.html) page describes all its options and commands.

Start it with a user and a database name. The users **DBA** and **PUBLIC** exist in every database and have no password until one is set:

```bash
corasql -u dba e-commerce
```

Type a statement ending with a semicolon to run it, and `;help` to list the session commands:

```sql
SELECT c.company_name, COUNT(*) AS orders
FROM orders o JOIN customer c ON c.id = o.customer_id
GROUP BY c.company_name ORDER BY 2 DESC, 1 LIMIT 3;
```

| company_name | orders |
|---|---|
| Kelly Ltd | 49 |
| Mayer, Carroll and Owens | 40 |
| Young and Sons | 40 |

Statements can also be run without the interactive prompt, from the command line (**-c**) or from a file (**-i**), with output formats for scripts (**-t**, **-q**, **-d**):

```bash
corasql -u dba -c "SELECT COUNT(*) FROM orders" e-commerce
corasql -u dba -i monthly_report.sql -o monthly_report.txt e-commerce
```

Leave corasql with `;exit`.

## Drivers

Applications connect through the CoraDB broker with one of the [drivers](https://www.coradb.ai/manual/api.html):

| Language | Driver |
|---|---|
| Java | [JDBC](https://www.coradb.ai/manual/api/jdbc.html) |
| JavaScript / TypeScript | [Node.js](https://www.coradb.ai/manual/api/node_js.html) |
| PHP | [PHP](https://www.coradb.ai/manual/api/php.html) |
| C# / .NET | [ADO.NET](https://www.coradb.ai/manual/api/adodotnet.html) |
| Python | [Python](https://www.coradb.ai/manual/api/python.html) |
| C / C++ | [CCI](https://www.coradb.ai/manual/api/cci.html) |
