Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/ivanceras/sql-ast
SQL abstract syntax tree
https://github.com/ivanceras/sql-ast
Support DROP [TABLE|VIEW]
7a6a66bdc57c13aa2bb2e61d9ac02722c4168b84 authored over 5 years agoReplace Option<Vec<T>> with Vec<T>
80f594e8d3eae9a305e45a105a74b0a2bec1a5bd authored over 5 years agoImplement std::error::Error for ParserError
bc1ec47e4b4c6c974e872b72c9d3d80e8a32eb8c authored over 5 years ago72ced4bffebbe81787500ea07e348a363994e948 authored over 5 years ago
`BETWEEN <thing> AND <thing>` allows <thing> to be any expr that doesn't
contain boolean operato...
Co-authored-by: Jamie Brandon <[email protected]>
187376e657929093a914d34dff9ff73cf681aa28 authored over 5 years ago373a9265a20d5ae78331d745053a4ccd8b0f4619 authored over 5 years ago
Co-authored-by: Nikhil Benesch <[email protected]>
55fc8c5a5785dee0d22356f184a7e95854ed9cc4 authored over 5 years ago
Vectors can already represent the absence of any arguments (i.e., by
being empty), so there is n...
Don't panic when NOT is not followed by an expected keyword
4f944dd4aad367b6c5b6d98e4806aa837a035b58 authored over 5 years agoCo-authored-by: Nikhil Benesch <[email protected]>
143846d33391948fe0e92d9ddfe1df77158c66d7 authored over 5 years ago24f3d06231cae8eaf92d762e9a566a6e3b659b68 authored over 5 years ago
d263d285e2a4b99946d67f9a8829d49d38d8b5eb authored over 5 years ago
Use smarter macros to avoid duplication in keywords.rs
908082d26f0cb7952736c038c005a55279ec9134 authored over 5 years agoImplement COLLATE, optional column list in CTEs, and more
3d1b73ad1a00b5d5cf70b03cc19429f869011e24 authored over 5 years ago
The meaning of `self.parse_parenthesized_column_list(false)?` was not
very obvious.
Roughly the <character factor> production - https://jakewheat.github.io/sql-overview/sql-2011-fo...
f859c9b80e7563f910db63f1a1275af62dbf6a25 authored over 5 years ago`!=` is not standard, though widely supported - https://stackoverflow.com/a/723426/1026
eeae3af6a343f73337c801b060942312d461b03e authored over 5 years agof93e69d1d49b1ef7398a9d528df1c2dd56a94600 authored over 5 years ago
cccf7f0d8ec5d4d40b2e49e725d979a1d3ccfea1 authored over 5 years ago
e7949d493c821538ff0d7b29334b945cb9048314 authored over 5 years ago
...and add a `rustfmt.toml` as advised in https://www.reddit.com/r/rust/comments/9jl6a9/pro_tip_...
f82dc74e384e3e3d01c00d706d55de9c38cbfc81 authored over 5 years agoReorganize tests, remove datetime code, and add basic MSSQL dialect
037c6dab93408029cf2b550bc4cedf7c61d88ffe authored over 5 years agoed20b8dde889277dd9ea554a150d4205ac194338 authored over 5 years ago
67cc880fd1631f8211bf95f6d2e4a0c4fa00f886 authored over 5 years ago
De-duplicate and check for specific error in `parse_insert_invalid`.
fe635350f07d578aa3b86adbe87d636575ea3cad authored over 5 years agod1b088bd4382aa803dde6016056f2e7c27811769 authored over 5 years ago
`parse_example_value` parses as compound identifier, which makes no
sense ("SARAH"."LEWISE@sakil...
The `@@version` test is MS' dialect of SQL, it seems, so test it with
its own dialect.
Update t...
304710d59ad7b89378148eafec02c2045daaf826 authored over 5 years ago
- The ANSI dialect is now tested in `sqlparser_common.rs`
- Some PG testcases are also parsed by...
1347ca08253895301dc3304e386da09c8581b75b authored over 5 years ago
Also run "generic" tests with all dialects (`parse_select_version`
doesn't work with ANSI dialec...
1) Removed unused date/time parsing methods from `Parser`
I don't see how the token-based parsi...
de177f107cd0f879aba60a5893778a71e6602452 authored over 5 years ago9297ffbe1875077bf6cc1d0c571d824549546798 authored over 5 years ago
(The `SQLBetween` change is to fix a `cargo doc` warning.)
d58bbb8f9f0dac4ca79bf4074efb9c8bea475e38 authored over 5 years agoCleanups, and support `CASE operand`, TVFs and MSSQL-specific WITH hints
4b27db0bf9ccada2799f713f1462384f2a04dbda authored over 5 years ago787cd9a717a48ff8dbe2e5324a07db9ef84b4432 authored over 5 years ago
We don't have the code to parse UUID literals, so it's dead code, that
brings in the dependency ...
1) Table-valued functions (`FROM possibly_qualified.fn(arg1, ...)`) is
not part of ANSI SQL, but...
Another part of #15
e5e3d713542b7049e7d8a2f63c57310de0663eaa authored over 5 years ago2aa4c267e74b79a162c9d7d58bcdacd7b2900e6f authored over 5 years ago
- ASTNode::SQLBinaryExpr is now constructed in one location
- There's no duplicate calls to pars...
d65274bc31af35bc8692c52905ccddc843e33f11 authored over 5 years ago
Support OVER clause for window/analytic functions, add support for qualified function names
6bb2acc9f8f016629d28e39bbaa62b85a1e7b852 authored over 5 years agoSupport \r and \r\n line breaks in tokenizer
64b1ea7a254388e80dbd8ac196a6533c9a5a5d3b authored over 5 years agoFix qualified wildcard stringifying
07d66a93ef5f35b2d6926aa5fc14449f53744de1 authored over 5 years agoRust 2018 and clippy fixes
4cdd003cd4f029ec42a392b4e006f207a0451f08 authored over 5 years agobf3110f6ce8d7b9a63f9611ed530d712c1425d5a authored over 5 years ago
6f44494910fa676ea4f592520a425233782802d8 authored over 5 years ago
76d2d46496edf1842556c12f126dccbac252b486 authored over 5 years ago
f9fb4bedfb64b038c222eb0b9983eda98f57c5a4 authored over 5 years ago
80aceba630da6015eb6f8be908298cdd416f41e6 authored over 5 years ago
80dccf68856ef9ad019b25e86d0e2872b516c40c authored over 5 years ago
5b464e6b1a9ca034739553997126bab2a07d8c77 authored over 5 years ago
098d1c4a17c43357a24cd82831e1e23b4454a640 authored almost 6 years ago
a3a8626e6bde2d7924f3428aa06101d00f54efbb authored almost 6 years ago
The name was confusing:
SQLStatement::SQLSelect(
SQLQuery {
body: SQLSetExpr::Select(SQLSe...
To fix clippy warnings about assert!(true / false)
08bbce8992b2f5a86880ede500c580476c0ce0bd authored almost 6 years agohttps://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants
While I don't...
dee30aabe04c56aa2c8a9fa810ed509a14d2330a authored almost 6 years agoc223eaf0aa51be6b6b136099dd7ae3382e5a67fd authored almost 6 years ago
https://rust-lang.github.io/rust-clippy/master/#if_same_then_else
There was a bug in parsing `T...
3df2223d953cf5782f86c2e0c0b59be6d8667c17 authored almost 6 years ago0634ec4a83d9bce7ba1e879d9a543db5171b5d90 authored almost 6 years ago
This requires Rust 1.31 (from last year) to build, but is otherwise
compatible with the 2015-edi...
9a244e059e508711bf3812c12b9a0f72e1628591 authored almost 6 years ago
de057deff68a5b5bcd57acdee54ecce4c32d2a70 authored almost 6 years ago
Since this changes SQLFunction anyway, changed its `id` field to `name`,
as we don't seem to use...
(This produces more natural JSON representation when serializing AST
with serde.)
8c7e1d1c54907644220029571e2973bca9b5a8b4 authored almost 6 years ago
...e.g. `db.schema.func()`
4a5dc8dd4b9d7d7647ab0d3cddd2826cff66b6a4 authored almost 6 years agoc8e7c3b3433d489fb9df4f4390a174ec6d4b486f authored almost 6 years ago
ef76baa7fd18341cc7d85caf60c9356d5d586c14 authored almost 6 years ago
1aa473389015fe856b9e15304012f218d8c9a443 authored almost 6 years ago
Support SELECT DISTINCT, and a few minor tweaks
6ebd5dd81969ef5315222d4da5bf162cf840a7f6 authored almost 6 years ago451513db5b0f9b0c2d53bf45c7ed13761b77d933 authored almost 6 years ago
e113dee7e87b4d532f509d988ed126d0bf394c7e authored almost 6 years ago
5263ee1e9e3f970959f515f86610670c5aad738a authored almost 6 years ago
bbf1805729d4fb0238c889d258b092e64ad4bcad authored almost 6 years ago
(So that adding another trait can be done with a global search and replace.)
31b6076d0537d26590cd51669e5147769911435b authored almost 6 years agoThanks @zhzy0077 !
d9591cd999473150b7e4e39d92d9ae39c9987562 authored almost 6 years agod8f824c400ddf573ef7103631b6ba0677892912f authored almost 6 years ago
35556593f5a35fb368841273a89c36ab5f8164a5 authored almost 6 years ago
26940920ac18ae9713f190bfe5b8ac56c8e89a10 authored almost 6 years ago
f0f6082eff61ab005490b1b7bf38a0a8e749d865 authored almost 6 years ago
d1b5668fd3b3077ad322e7edf2090c11ea572715 authored almost 6 years ago
311f2ab429e103abede7a49c3589fc25f07d25cb authored almost 6 years ago
5de23b1e7890c8b7c1d9e8b887503a7ce5a0f6d9 authored almost 6 years ago
6dfe7c2413f7472066a15750426de4608b535060 authored almost 6 years ago
Update badge based on gitter email
bebaec4c797bce7cbd2f88a9c9bc0fa2a1b5eb0a authored almost 6 years agoeee1b3a2bd60d7daf9a3a5829ba3ef20f60d675e authored almost 6 years ago
5ba9912a9dc755426c2822d707731b56f92be3c6 authored almost 6 years ago
aa1f0faad47d5e4a86020f9bf11a1c437f3f0adb authored almost 6 years ago
30de48c840702c68c82849b4d11c3ad5a24757eb authored almost 6 years ago
Revert "Rework keyword/identifier parsing"
4a355e6ddcdb4bab305cac9df0090602cf6c97ec authored almost 6 years ago43f4c6875fe45aeac2eb89bc8721dcb475bba1bc authored almost 6 years ago
391c53d5c9daa1ac068d1dc81048f746b7b56dbf authored almost 6 years ago
6580bf10c0265f137432191048b183793d6fd1c7 authored almost 6 years ago
Rework keyword/identifier parsing
75e2c0a64ffa85ac8f3627bc687dfa5b621492ed authored almost 6 years ago7c9f62962d3a40cefe84d5620086a19f3c56906f authored almost 6 years ago
8c1d6a67fa6e6b7274232dee0ba216053e3ddd47 authored almost 6 years ago
15704f1fbe96a8e0c693ecfae572f070eea3eefa authored almost 6 years ago