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

#2948 in Parser implementations

Download history 5/week @ 2024-11-13 6/week @ 2024-11-20 12/week @ 2024-11-27 23/week @ 2024-12-04 49/week @ 2024-12-11 19/week @ 2024-12-18 1/week @ 2024-12-25 5/week @ 2025-01-01 9/week @ 2025-01-08 16/week @ 2025-01-15 26/week @ 2025-01-22 17/week @ 2025-01-29 72/week @ 2025-02-05 39/week @ 2025-02-12 24/week @ 2025-02-19 38/week @ 2025-02-26

177 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.8MB
~37K SLoC