Skip to content

An example project showing how to use SQLx and SQLite together in a Rust project.

Notifications You must be signed in to change notification settings

ungana/sqlx-sqlite-database-connection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQLx with SQLite Example

This is an example of using SQLx with SQLite. It doesn't do too much, but it you can see a simple example of how to setup your project to use the two together.

Getting Started

You will need Rust, SQLite(if your operating system does not already have it) and the SQLx CLI. Once installed, navigate to this cloned project in the terminal and run:

cargo run

This project simply adds "John Doe" to an example.db file. You can see the additions using the SQLite app of your choice and checking the Users table.

SELECT * FROM Users;

About

An example project showing how to use SQLx and SQLite together in a Rust project.

Topics

Resources

Stars

Watchers

Forks

Languages