#queries #insert #format #mysql #extension #specialized #formatter

bin+lib insertfmt

fast & easy formatter MySQL INSERT queries

5 stable releases

new 1.0.4 Apr 13, 2024
1.0.3 Apr 23, 2023
1.0.2 Apr 19, 2023

#8 in #specialized

34 downloads per month

MIT license

415KB
423 lines

Test status Docs Dependency status

Rust version Crates.io

insertfmt

fast & easy CLI specialized to format MySQL INSERT queries.

format queries so that they look like a table.

preview

NOTE: If you wanna use the VSCode extension, please get it from the below link. Thanks! https://marketplace.visualstudio.com/items?itemName=canalun.insertfmt

Installation

You can download the binary from releases.

The binary is self-sufficient with no dependencies, and can be put anywhere on your PATH and run with insertfmt command!!

Or, you can also install the module directly with cargo.

cargo install insertfmt

Basic Usage

To run the tool, run the command with a path argument:

insertfmt x.sql y.sql <...>

You can specify as many paths as you want.

Release Note

v1.0.4

  • update libraries

v1.0.3

  • fix bug of backslash disappearance!

v1.0.1-1.0.2

  • fix error msg

v1.0.0

  • HBD🎂
  • vSQLfmt gets able to format 'INSERT' queries!

Monorepo

This repository is a monorepo of Rust CLI and TS+Wasm VSCode extension.

If you are interested in it technically, why not check out the below article🌟

dev.to: Monorepo of Rust CLI & TS+Wasm VSCode

Contribution

You wanna contribute!? Thanks!!!! Would be great if you check the below doc out😊

CONTRIBUTING.md

Dependencies

~4.5–6MB
~113K SLoC