banshee 0.2.3

PostgreSQL SQL parser, formatter, linter and language server.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use criterion::{Criterion, black_box, criterion_group, criterion_main};

const FORMAT_QUERY: &str = "SELECT id, name FROM users WHERE active = true;";

fn bench_format(c: &mut Criterion) {
    c.bench_function("format_sqlstyle", |b| {
        b.iter(|| banshee_format::format_sqlstyle(black_box(FORMAT_QUERY)))
    });
}

criterion_group!(benches, bench_format);
criterion_main!(benches);