Replies: 6 comments 1 reply
-
Hey, if |
Beta Was this translation helpful? Give feedback.
-
Full featured sub-query aliasing: SELECT users.id, users.username, SUM(p.nb_views) FROM users
INNER JOIN (
SELECT
posts.user_id,
(SELECT COUNT(*) FROM views WHERE views.post_id = posts.id) as nb_views
FROM posts
) as p ON p.user_id = users.id
GROUP BY users.id (I'm aware this particular query can be written differently, that's just for the example.) Notably this would (should) enable batch updates: UPDATE posts SET content = vals.content
FROM (VALUES (1, "Hello"), (2, "World")) as vals(post_id, content) WHERE vals.post_id = posts.id |
Beta Was this translation helpful? Give feedback.
-
Compile-time check that fields that are not |
Beta Was this translation helpful? Give feedback.
-
Your project helps a lot. [[print_schema]]
file = "db_company/src/schema.rs"
filter = { only_tables = ["^companies$"] }
[[print_schema]]
file = "db_user/src/schema.rs"
filter = { only_tables = ["^users$"] } Then, the Motivation
Current Behaviorprint_schema field only allows only on schema info. [print_schema]
file = "db_company/src/schema.rs"
filter = { only_tables = ["^companies$"] }
# [print_schema]
# file = "db_user/src/schema.rs"
# filter = { only_tables = ["^users$"] } |
Beta Was this translation helpful? Give feedback.
-
I've opened a PR that adds building blocks that greatly simplify the implementation of logging and instrumentation libraries on top of diesel. If you are interested in this topic feel free to checkout #3864 and give your feedback there. |
Beta Was this translation helpful? Give feedback.
-
I realize it's not on your priority list, but I was struck by the limited support for views today. (See #43 and #3473.) |
Beta Was this translation helpful? Give feedback.
-
After the recent diesel 2.1 release I'm trying to gather some data about what features are considered to be missing by our users. If you have suggestions for different features please leave a comment below.
If you want to support the work on a certain feature via contributions or sponsoring please reach out.
96 votes ·
Beta Was this translation helpful? Give feedback.
All reactions