11 releases

Uses old Rust 2015

0.0.11 Feb 5, 2020
0.0.10 Dec 9, 2019
0.0.9 Aug 21, 2019
0.0.7 Jul 16, 2019
0.0.3 Apr 16, 2018

#2622 in Parser implementations

Download history 16/week @ 2023-11-27 2/week @ 2023-12-11 13/week @ 2023-12-18 7/week @ 2023-12-25 39/week @ 2024-01-08 24/week @ 2024-01-15 7/week @ 2024-01-22 35/week @ 2024-02-05 25/week @ 2024-02-12 31/week @ 2024-02-19 52/week @ 2024-02-26 33/week @ 2024-03-04 73/week @ 2024-03-11

195 downloads per month
Used in 7 crates (6 directly)

MIT license

230KB
6K SLoC

nom-sql

Build Status

An incomplete Rust SQL parser written using nom.

This parser is a work in progress. It currently supports:

  • most CREATE TABLE queries;
  • most INSERT queries;
  • simple SELECT queries;
  • simple UPDATE queries; and
  • simple DELETE queries.

We try to support both the SQLite and MySQL syntax; where they disagree, we choose MySQL. (It would be nice to support both via feature flags in the future.)

Dependencies

~1.1–1.9MB
~39K SLoC