forma
forma copied to clipboard
🐚 An opinionated SQL formatter.
Bumps [bumpalo](https://github.com/fitzgen/bumpalo) from 3.2.1 to 3.12.0. Changelog Sourced from bumpalo's changelog. 3.12.0 Released 2023-01-17. Added Added the bumpalo::boxed::Box::bump and bumpalo::collections::String::bump getters to get the underlying Bump that a string or...
Bumps [crossbeam-queue](https://github.com/crossbeam-rs/crossbeam) from 0.2.1 to 0.2.3. Commits 149a3c9 Release crossbeam-queue 0.2.3 18363b5 Merge #476 e32c891 Release new versions 6d6591a Merge #474 528c3ca Undo bump of rand as it bumps MSRV...
Bumps [regex](https://github.com/rust-lang/regex) from 1.3.7 to 1.5.6. Changelog Sourced from regex's changelog. 1.5.6 (2022-05-20) This release includes a few bug fixes, including a bug that produced incorrect matches when a non-greedy...
Bumps [crossbeam-deque](https://github.com/crossbeam-rs/crossbeam) from 0.7.3 to 0.7.4. Changelog Sourced from crossbeam-deque's changelog. Version 0.8.1 Support targets that do not have atomic CAS on stable Rust (#698) Version 0.8.0 Bump the minimum...
Bumps [structopt](https://github.com/TeXitoi/structopt) from 0.3.21 to 0.3.26. Changelog Sourced from structopt's changelog. v0.3.25 (2021-10-18) Fix duplication of aliases in subcommands #504 v0.3.25 (2021-10-18) No changes v0.3.23 (2021-08-30) Update minimal rust version...
Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.2.0 to 3.3.0. Changelog Sourced from tempfile's changelog. 3.3.0 Features: Replace rand with fastrand for a significantly smaller dependency tree. Cryptographic randomness isn't necessary for temporary file...
Which of these make more sense? ``` /// Forma error type. #[derive(Debug)] pub enum FormaError { InputErrorType1, InputErrorType2, TransformationErrorType1, TransformationErrorType2, OutputErrorType1, OutputErrorType2 } ``` *or:* ``` #[derive(Debug)] pub enum InputError...
In order to eventually support comments, we'll need to use a parsing method that is lossless. Such an effort is [already underway](https://github.com/ballista-compute/sqlparser-rs/pull/189), but will require reworking `formation`.
Currently `forma` supplies a slightly modified generic dialect. It would be nice if the caller could specify their own dialects.
Currently `forma` only works with `select ...` statements. However, the parser supports essentially any arbitrary query. Modifying `formation` to cover the full enum should provide the missing coverage.