dsync
dsync copied to clipboard
Generate rust structs & query functions from diesel schema files
This PR adds derive `diesel::Identifiable` to all Read-structs which have a primary key. fixes #133 Note: personally i thought the `Identifiable` is only necessary for `Associations` or if you want...
In https://github.com/Wulf/dsync/blob/a44afdd08f4447e367aa47ecb91fae88b57f8944/src/code.rs#L214 the `Identifiable` traits gets derived for any table which has a foreign key. That is fine and all but forgets the table the foreign key comes from. A...
This PR quick-fixes the unused import warnings for `crate::diesel::*` and paginate imports. The `crate::diesel::*` line should be removed altogether (see #94). re https://github.com/Wulf/dsync/issues/94#issuecomment-1937836230
https://github.com/Wulf/dsync/blob/007ace83c139f67e1d85ed4829cf0b6953d121df/test/simple_table/models/todos/generated.rs#L3 dsync generates `use crate::diesel::*;`. But I think it actually should be `use diesel::*;`. `diesel` is an external crate, which is not declared from the root of a user's project.
This PR is a POC (which may be extended upon) to use `quote` + `prettyplease` for code generation instead of a string. limitations i have found while using quote +...
Currently the project has seen many changes and will likely see some more re-structures in the (hopefully near) future, so here is a roadmap on how we could handle this...
This PR does some small clean-up (hopefully before the next release): - README: update for changes done since 0.0.16 that hadnt been done in their respective PRs - README: some...
I just wanted to share my thoughts on the 'read/paginate' functions: They are very arbitrary unless we introduce a way to filter the results. In #103, I attempted to add...
Adds a simple example that we use as a compilation test. We'll need to expand this going forward to ensure robustness Note: This will fail until #104 is merged in...
hey @hasezoey Do you have any experience setting up crates.io publishing CI? I think it’s time for us to pursue this. I can add a CARGO_TOKEN secret to this repo...