Luca Barbato
Luca Barbato
right now there is no `init` command, getting it nice might time a bit of time and quite a bit of toml-edit ^^;
With https://github.com/shssoichiro/sqlformat-rs/pull/75 it should be possible to have the last layout specified, but it would need another bit of logic to inline the next top level keyword.
Now we have a mean to have a fairly compact formatting: ``` rust fn it_formats_blocks_inline_or_not() { let input = " UPDATE t SET o = ($5 + $6 + $7...
It needs more tweaking and fixes, it doesn't yet return in the columnar mode correctly when limits are hit.
The hack from last night was abusing the different rules pretty much twisting them to the opposite of what they should, if somebody wants to help we need to: -...
``` rust #[test] fn it_formats_blocks_inline_or_not() { let input: &str = " UPDATE t SET o = ($5 + $6 + $7 + $8),a = CASE WHEN $2 THEN NULL ELSE...
with https://github.com/shssoichiro/sqlformat-rs/pull/90 it gets almost as nice as I wish to. Next I'll try to give knobs to turn the vertical vs horizontal formatting based on a complexity value given...
@bartlomieju if you have time to give it a try and see if it can work for your purpose would be great :)
@tyt2y3 if the proc_macro tightly bound to the sea-query internals or would be feasible to lift the mapping logic into the sqlx macros?
What about making so dracut-install look for an env var LDD or such? Would be nice to be able to use different ldd-like such as [lddtree.py](https://github.com/pypa/auditwheel/blob/main/src/auditwheel/lddtree.py) or [lddtree-rs](https://crates.io/crates/lddtree).