How-to Guides
Each guide is a section of the docs that does one task, with SQL that runs. They use the karate club and Les Misérables datasets; the Quickstart shows how to download them.
Install and run
Section titled “Install and run”- Install
ursawith the install script, with Cargo, or from a prebuilt binary. - Try a nightly build.
- Run SQL from a script, a file or stdin.
- Keep settings and dot-commands in an init file.
- Teach a coding agent to write Ursa SQL.
Import and export data
Section titled “Import and export data”- Query a CSV, Parquet or JSON file.
- Read a file with options, whatever its extension.
- Write a query’s rows to a file with
COPY. - Convert a large CSV file to Parquet once.
- Query files in S3, GCS or Azure, and set up credentials.
- Read results as JSON in a program.
Define graphs
Section titled “Define graphs”- Define a graph from an edge table.
- Give a graph node attributes with a vertex table.
- Define a graph of several tables.
- Work on a subgraph.
- List and describe your graphs.
Analyze graphs
Section titled “Analyze graphs”- Run PageRank and rank the nodes.
- Run several algorithms in one query and join attributes.
- Treat a directed graph as undirected.
- Weight the edges.
- Aggregate a value over each node’s neighbours.
- Find the nodes within n steps.
- Find the shortest path between two nodes, or every shortest path.
- Match a pattern of nodes and edges.
- Make a pattern match fast.
Databases
Section titled “Databases”- Keep views, graphs and indexes in a database file.
- Query a database while another process writes it.
- Limit the space stored indexes take.
- Check whether a query built or loaded its index.
- Move a database with its data.