Skip to content

Commit

Permalink
refactor: rename embedded_async_diesel_r2d2 to diesel_embedded
Browse files Browse the repository at this point in the history
  • Loading branch information
brianheineman committed Aug 19, 2024
1 parent df6402e commit dcd2488
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 22 deletions.
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ anyhow = "1.0.86"
async-trait = "0.1.81"
axum = "0.7.5"
criterion = "0.5.1"
diesel = "2.2.1"
diesel_migrations = "2.2.0"
flate2 = "1.0.31"
futures-util = "0.3.30"
hex = "0.4.3"
Expand All @@ -40,6 +42,7 @@ md-5 = "0.10.6"
num-format = "0.4.4"
pgvector = "0.4.0"
quick-xml = "0.36.1"
r2d2_postgres = "0.18.1"
rand = "0.8.5"
regex = "1.10.6"
reqwest = { version = "0.12.5", default-features = false }
Expand Down
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"] }
2 changes: 2 additions & 0 deletions examples/diesel_embedded/README.md
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.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP TABLE posts
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.

This file was deleted.

This file was deleted.

0 comments on commit dcd2488

Please sign in to comment.