Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Connecting Rust and SQLite with ADBC

Instructions

Prerequisites

  1. Install Rust

  2. Install dbc

  3. Install SQLite

    • On macOS, if you have Homebrew installed, run brew install sqlite

Connect to SQLite

  1. Install the SQLite ADBC driver:

    dbc install sqlite
  2. Customize src/main.rs as needed

    • Change the database arguments in opts
      • Replace "games.sqlite" to the location of the SQLite database file you want to query, or keep it set to games.sqlite to use the database file included with this example
    • If you changed the database file, also change the SQL SELECT statement in statement.set_sql_query()
  3. Run the Rust program:

    cargo run