-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rename embedded_async_diesel_r2d2 to diesel_embedded
- Loading branch information
1 parent
df6402e
commit dcd2488
Showing
13 changed files
with
28 additions
and
22 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...les/embedded_async_diesel_r2d2/Cargo.toml → examples/diesel_embedded/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
[package] | ||
edition.workspace = true | ||
name = "embedded_async_diesel_r2d2" | ||
name = "diesel_embedded" | ||
publish = false | ||
license.workspace = true | ||
version.workspace = true | ||
|
||
[dependencies] | ||
diesel = { workspace = true, features = ["postgres", "r2d2"] } | ||
diesel_migrations = { workspace = true, features = ["postgres"] } | ||
postgresql_embedded = { path = "../../postgresql_embedded" } | ||
r2d2_postgres = { workspace = true } | ||
tokio = { workspace = true, features = ["full"] } | ||
diesel = { version = "2.2.1", features = ["postgres", "r2d2"] } | ||
r2d2_postgres = "0.18.1" | ||
diesel_migrations = { version = "2.2.0", features = ["postgres"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
This example is taken from [Getting Started with Diesel](https://diesel.rs/guides/getting-started) | ||
and modified to work with an embedded database. |
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
examples/diesel_embedded/migrations/2024-08-17-200823_create_posts/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP TABLE posts |
7 changes: 7 additions & 0 deletions
7
examples/diesel_embedded/migrations/2024-08-17-200823_create_posts/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CREATE TABLE posts | ||
( | ||
id SERIAL PRIMARY KEY, | ||
title VARCHAR NOT NULL, | ||
body TEXT NOT NULL, | ||
published BOOLEAN NOT NULL DEFAULT FALSE | ||
) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion
1
examples/embedded_async_diesel_r2d2/migrations/2024-08-17-200823_create_posts/down.sql
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
examples/embedded_async_diesel_r2d2/migrations/2024-08-17-200823_create_posts/up.sql
This file was deleted.
Oops, something went wrong.