Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

NotificationsYou 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

This is an example of usingSQLx withSQLite. 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 needRust,SQLite(if your operating system does not already have it) and theSQLx CLI. Once installed, navigate to this cloned project in the terminal and run:

cargo run

This project simply adds "John Doe" to anexample.db file. You can see the additions using theSQLite app of your choice and checking theUsers 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


[8]ページ先頭

©2009-2025 Movatter.jp