Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added custom array example with documentation. #4169

Merged
merged 76 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
3c51193
Added custom array example with documentation.
marvin-hansen Aug 15, 2024
233d30b
Fixed a bunch of typos in the custom array example Readme.
marvin-hansen Aug 15, 2024
a4e6985
Updated and edited Readme in the custom array example.
marvin-hansen Aug 15, 2024
c8f9938
Applied multiple lints to tests in custom array example.
marvin-hansen Aug 15, 2024
0986ddf
Added a lint suppression to stop a false positive.
marvin-hansen Aug 15, 2024
c7fbf34
Fixed tests in custom array example.
marvin-hansen Aug 15, 2024
d97c684
Updated Readme in custom array example to reflect correct custom sche…
marvin-hansen Aug 15, 2024
bf2bbe4
Custom Array Example:
marvin-hansen Aug 16, 2024
54386df
Merge branch 'diesel-rs:master' into master
marvin-hansen Aug 16, 2024
3b8dfb8
Update examples/postgres/custom_arrays/README.md
marvin-hansen Aug 16, 2024
08c3341
Update examples/postgres/custom_arrays/migrations/2024-08-15-070500_s…
marvin-hansen Aug 18, 2024
26d7735
Update examples/postgres/custom_arrays/src/model/service/service_impl.rs
marvin-hansen Aug 18, 2024
3160ba8
Update examples/postgres/custom_arrays/src/model/service/service_impl.rs
marvin-hansen Aug 18, 2024
3ab39fa
Update .gitignore
marvin-hansen Aug 18, 2024
52008d4
Apply suggestions from code review
marvin-hansen Aug 18, 2024
7e85c57
Update examples/postgres/custom_arrays/src/model/service/service_impl.rs
marvin-hansen Aug 18, 2024
7cc2d91
[no ci] Update examples/postgres/custom_arrays/src/model/service/serv…
marvin-hansen Aug 18, 2024
829ac27
changed dotenv to dotenvy
marvin-hansen Aug 18, 2024
9e8c7ad
Moved Endpoint impl into type definition file. (See [comment](https:/…
marvin-hansen Aug 18, 2024
942d3f6
[skip ci] Switched example code and tests from PGConnectionPool to si…
marvin-hansen Aug 18, 2024
2889d44
[skip ci] Moved all custom types into custom schema smdb. See [commen…
marvin-hansen Aug 18, 2024
ea5c37f
Updated Readme and tests to match previous code changes.
marvin-hansen Aug 18, 2024
817238f
Added custom array example with documentation.
marvin-hansen Aug 15, 2024
80edcdf
Fixed a bunch of typos in the custom array example Readme.
marvin-hansen Aug 15, 2024
c2aa26f
Updated and edited Readme in the custom array example.
marvin-hansen Aug 15, 2024
2316164
Applied multiple lints to tests in custom array example.
marvin-hansen Aug 15, 2024
5b01b94
Fixed tests in custom array example.
marvin-hansen Aug 15, 2024
a46e660
Updated Readme in custom array example to reflect correct custom sche…
marvin-hansen Aug 15, 2024
e3eeecf
Custom Array Example:
marvin-hansen Aug 16, 2024
b4ec796
Update examples/postgres/custom_arrays/README.md
marvin-hansen Aug 16, 2024
574822f
Update examples/postgres/custom_arrays/migrations/2024-08-15-070500_s…
marvin-hansen Aug 18, 2024
61e0f09
Update examples/postgres/custom_arrays/src/model/service/service_impl.rs
marvin-hansen Aug 18, 2024
b11dd14
Update examples/postgres/custom_arrays/src/model/service/service_impl.rs
marvin-hansen Aug 18, 2024
5c56d64
Update .gitignore
marvin-hansen Aug 18, 2024
b6e313e
Apply suggestions from code review
marvin-hansen Aug 18, 2024
fc6d49d
Update examples/postgres/custom_arrays/src/model/service/service_impl.rs
marvin-hansen Aug 18, 2024
b9b30d9
[no ci] Update examples/postgres/custom_arrays/src/model/service/serv…
marvin-hansen Aug 18, 2024
27e918c
changed dotenv to dotenvy
marvin-hansen Aug 18, 2024
70d66ad
Moved Endpoint impl into type definition file. (See [comment](https:/…
marvin-hansen Aug 18, 2024
58b40be
[skip ci] Switched example code and tests from PGConnectionPool to si…
marvin-hansen Aug 18, 2024
fc80414
[skip ci] Moved all custom types into custom schema smdb. See [commen…
marvin-hansen Aug 18, 2024
ba72c1f
Updated Readme and tests to match previous code changes.
marvin-hansen Aug 18, 2024
cdcc096
Fix formating
weiznich Aug 23, 2024
74cf685
Update README.md
marvin-hansen Aug 23, 2024
0118be1
Update README.md
marvin-hansen Aug 23, 2024
4d7ca41
Update README.md
marvin-hansen Aug 23, 2024
e1cd605
Update README.md
marvin-hansen Aug 23, 2024
f0c3bc4
Update README.md
marvin-hansen Aug 23, 2024
6aec7f8
Update README.md
marvin-hansen Aug 23, 2024
931dc4b
Update README.md
marvin-hansen Aug 23, 2024
5dc1611
Update README.md
marvin-hansen Aug 23, 2024
d6425db
Update README.md
marvin-hansen Aug 23, 2024
85fdbda
Update README.md
marvin-hansen Aug 23, 2024
5c3e939
Update README.md
marvin-hansen Aug 23, 2024
e1924f7
Update README.md
marvin-hansen Aug 23, 2024
390eae9
Update README.md
marvin-hansen Aug 23, 2024
642d604
Update README.md
marvin-hansen Aug 23, 2024
609ad61
Update README.md
marvin-hansen Aug 23, 2024
236bcc5
Update README.md
marvin-hansen Aug 23, 2024
e87554e
Update README.md
marvin-hansen Aug 23, 2024
c1d9149
Update README.md
marvin-hansen Aug 23, 2024
b34f35e
Update README.md
marvin-hansen Aug 23, 2024
54da533
Update README.md
marvin-hansen Aug 23, 2024
63a3e33
Update README.md
marvin-hansen Aug 23, 2024
4688f7f
Update README.md
marvin-hansen Aug 23, 2024
22935c7
Merge branch 'diesel-rs:master' into master
marvin-hansen Aug 26, 2024
79cc312
Merge remote-tracking branch 'origin/master'
marvin-hansen Aug 26, 2024
c62124a
postgres custom array example:
marvin-hansen Aug 26, 2024
9547c22
postgres custom array Readme:
marvin-hansen Aug 26, 2024
f066876
postgres custom array example:
marvin-hansen Aug 26, 2024
dfcfce8
postgres custom array example:
marvin-hansen Aug 26, 2024
0a57904
Fixed linting
marvin-hansen Aug 26, 2024
478972d
postgres custom array example:
marvin-hansen Aug 26, 2024
973e4b0
Some minor cleanup and some minor additions to the text
weiznich Aug 30, 2024
d9b0677
Drive by fix of an non-deterministic test
weiznich Aug 30, 2024
405f29b
Cleanup the parallel testsetup
weiznich Aug 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ members = [
"examples/postgres/getting_started_step_1",
"examples/postgres/getting_started_step_2",
"examples/postgres/getting_started_step_3",
"examples/postgres/custom_arrays",
"examples/postgres/custom_types",
"examples/postgres/composite_types",
"examples/postgres/relations",
Expand Down
2 changes: 2 additions & 0 deletions diesel_tests/tests/joins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -438,12 +438,14 @@ fn join_with_explicit_on_clause() {

let data = users::table
.inner_join(posts::table.on(posts::title.eq("Post One")))
.order(users::id)
.load(connection);

assert_eq!(expected_data, data);

let data = users::table
.inner_join(posts::table.on(posts::title.eq_any(vec!["Post One"])))
.order(users::id)
.load(connection);

assert_eq!(expected_data, data);
Expand Down
2 changes: 2 additions & 0 deletions examples/postgres/custom_arrays/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/target
/.env
12 changes: 12 additions & 0 deletions examples/postgres/custom_arrays/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[package]
name = "custom_arrays"
version = "0.1.0"
edition.workspace = true
publish = false

[dependencies]
diesel = { path = "../../../diesel", version = "2.2.0", default-features = false, features = ["postgres", "r2d2"] }
diesel_migrations = { path = "../../../diesel_migrations", version = "2.2.0", default-features = false, features = ["postgres"] }

[dev-dependencies]
dotenvy = "0.15"
Loading
Loading