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

Merge pull request #75 from benesch/drop

Support DROP [TABLE|VIEW]

7a6a66bdc57c13aa2bb2e61d9ac02722c4168b84 authored over 5 years ago
Merge pull request #73 from benesch/option-vec

Replace Option<Vec<T>> with Vec<T>

80f594e8d3eae9a305e45a105a74b0a2bec1a5bd authored over 5 years ago
Merge pull request #72 from benesch/error

Implement std::error::Error for ParserError

bc1ec47e4b4c6c974e872b72c9d3d80e8a32eb8c authored over 5 years ago
Support COUNT(DISTINCT x) and similar

72ced4bffebbe81787500ea07e348a363994e948 authored over 5 years ago
Support nested expressions in BETWEEN

`BETWEEN <thing> AND <thing>` allows <thing> to be any expr that doesn't
contain boolean operato...

ba21ce9d37018d220e6126996e010e9392f8aab3 authored over 5 years ago
Support DROP [TABLE|VIEW]

Co-authored-by: Jamie Brandon <[email protected]>

187376e657929093a914d34dff9ff73cf681aa28 authored over 5 years ago
Implement std::error::Error for ParserError

373a9265a20d5ae78331d745053a4ccd8b0f4619 authored over 5 years ago
Support SELECT ALL

Co-authored-by: Nikhil Benesch <[email protected]>

55fc8c5a5785dee0d22356f184a7e95854ed9cc4 authored over 5 years ago
Replace Option<Vec<T>> with Vec<T>

Vectors can already represent the absence of any arguments (i.e., by
being empty), so there is n...

5652b4676c65f0875fd8c4849dd7cb27c819bef6 authored over 5 years ago
Merge pull request #71 from benesch/infix

Don't panic when NOT is not followed by an expected keyword

4f944dd4aad367b6c5b6d98e4806aa837a035b58 authored over 5 years ago
Don't panic on weird infix garbage

Co-authored-by: Nikhil Benesch <[email protected]>

143846d33391948fe0e92d9ddfe1df77158c66d7 authored over 5 years ago
Restore the original spacing in sqlparser.rs

24f3d06231cae8eaf92d762e9a566a6e3b659b68 authored over 5 years ago
Add LIMIT as RESERVED_FOR_TABLE_ALIAS, this closes Issue#67

d263d285e2a4b99946d67f9a8829d49d38d8b5eb authored over 5 years ago
Merge pull request #63 from nickolay/pr/refactor-keywords

Use smarter macros to avoid duplication in keywords.rs

908082d26f0cb7952736c038c005a55279ec9134 authored over 5 years ago
Merge pull request #64 from nickolay/pr/collate-cte-ne

Implement COLLATE, optional column list in CTEs, and more

3d1b73ad1a00b5d5cf70b03cc19429f869011e24 authored over 5 years ago
Add IsOptional enum to use instead of `optional: bool`

The meaning of `self.parse_parenthesized_column_list(false)?` was not
very obvious.

5f3150e39acea755716b9708a1302f93823de3ed authored over 5 years ago
Support COLLATE in expressions

Roughly the <character factor> production - https://jakewheat.github.io/sql-overview/sql-2011-fo...

f859c9b80e7563f910db63f1a1275af62dbf6a25 authored over 5 years ago
Change the default serialization of "not equals" operator to `<>`

`!=` is not standard, though widely supported - https://stackoverflow.com/a/723426/1026

eeae3af6a343f73337c801b060942312d461b03e authored over 5 years ago
Add parse_parenthesized_column_list to reduce code duplication

f93e69d1d49b1ef7398a9d528df1c2dd56a94600 authored over 5 years ago
Parse an optional column list after a CTE

cccf7f0d8ec5d4d40b2e49e725d979a1d3ccfea1 authored over 5 years ago
Reduce indentation in `parse_prefix()`

e7949d493c821538ff0d7b29334b945cb9048314 authored over 5 years ago
Mention that we use rustfmt for code formatting

...and add a `rustfmt.toml` as advised in https://www.reddit.com/r/rust/comments/9jl6a9/pro_tip_...

f82dc74e384e3e3d01c00d706d55de9c38cbfc81 authored over 5 years ago
Merge pull request #61 from nickolay/pr/revamp-tests

Reorganize tests, remove datetime code, and add basic MSSQL dialect

037c6dab93408029cf2b550bc4cedf7c61d88ffe authored over 5 years ago
Use smarter macros to avoid duplication in keywords.rs

ed20b8dde889277dd9ea554a150d4205ac194338 authored over 5 years ago
Add comments to the test files

67cc880fd1631f8211bf95f6d2e4a0c4fa00f886 authored over 5 years ago
Improve INSERT tests

De-duplicate and check for specific error in `parse_insert_invalid`.

fe635350f07d578aa3b86adbe87d636575ea3cad authored over 5 years ago
Switch remaining tests to the standard format

d1b088bd4382aa803dde6016056f2e7c27811769 authored over 5 years ago
Remove extraneous tests

`parse_example_value` parses as compound identifier, which makes no
sense ("SARAH"."LEWISE@sakil...

0233604f9beade7476018ff64af1492ce078bc1d authored over 5 years ago
Add MSSQL dialect and fix up the postgres' identifier rules

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
Remove the ansi-specific test file and update PG tests

- The ANSI dialect is now tested in `sqlparser_common.rs`
- Some PG testcases are also parsed by...

5047f2c02ea25469aed1d58f646452dd7e13a2e7 authored over 5 years ago
Move the rest of tests not specific to PG from the sqlparser_postgres.rs

1347ca08253895301dc3304e386da09c8581b75b authored over 5 years ago
Factor test helpers into a common module

Also run "generic" tests with all dialects (`parse_select_version`
doesn't work with ANSI dialec...

478dbe940d071b84b9a373456c197dd6b4d1dfa8 authored over 5 years ago
Remove dead datetime-related code

1) Removed unused date/time parsing methods from `Parser`

I don't see how the token-based parsi...

de177f107cd0f879aba60a5893778a71e6602452 authored over 5 years ago
Move tests using standard SQL from the postgresql-specific file

9297ffbe1875077bf6cc1d0c571d824549546798 authored over 5 years ago
Update doc comments

(The `SQLBetween` change is to fix a `cargo doc` warning.)

d58bbb8f9f0dac4ca79bf4074efb9c8bea475e38 authored over 5 years ago
Merge pull request #59 from nickolay/next

Cleanups, and support `CASE operand`, TVFs and MSSQL-specific WITH hints

4b27db0bf9ccada2799f713f1462384f2a04dbda authored over 5 years ago
Add `Parser::expected()` for more succinct error handling

787cd9a717a48ff8dbe2e5324a07db9ef84b4432 authored over 5 years ago
Remove Value::Uuid

We don't have the code to parse UUID literals, so it's dead code, that
brings in the dependency ...

c679c7a5b49e0d2112e41468aab164f17378d126 authored over 5 years ago
Parse table-valued functions and MSSQL-specific WITH hints

1) Table-valued functions (`FROM possibly_qualified.fn(arg1, ...)`) is
not part of ANSI SQL, but...

364f62f333ece4953b0b594482f67a39ee015740 authored over 5 years ago
Support `CASE operand WHEN expected_value THEN ..`

Another part of #15

e5e3d713542b7049e7d8a2f63c57310de0663eaa authored over 5 years ago
Simplify CASE parsing

2aa4c267e74b79a162c9d7d58bcdacd7b2900e6f authored over 5 years ago
Simplify parse_infix()

- ASTNode::SQLBinaryExpr is now constructed in one location
- There's no duplicate calls to pars...

e5c0c426b7904148a25ed41613065d75cf82ae8b authored over 5 years ago
Improve ALTER error messages for unsupported syntax

d65274bc31af35bc8692c52905ccddc843e33f11 authored over 5 years ago
Merge pull request #50 from nickolay/window-functions

Support OVER clause for window/analytic functions, add support for qualified function names

6bb2acc9f8f016629d28e39bbaa62b85a1e7b852 authored over 5 years ago
Merge pull request #54 from nickolay/windows-newlines

Support \r and \r\n line breaks in tokenizer

64b1ea7a254388e80dbd8ac196a6533c9a5a5d3b authored over 5 years ago
Merge pull request #53 from thomas-jeepe/master

Fix qualified wildcard stringifying

07d66a93ef5f35b2d6926aa5fc14449f53744de1 authored over 5 years ago
Merge pull request #51 from nickolay/rust-2018

Rust 2018 and clippy fixes

4cdd003cd4f029ec42a392b4e006f207a0451f08 authored over 5 years ago
Use `consume_and_return` when possible

bf3110f6ce8d7b9a63f9611ed530d712c1425d5a authored over 5 years ago
Support \r and \r\n line breaks in tokenizer

6f44494910fa676ea4f592520a425233782802d8 authored over 5 years ago
run cargo fmt

76d2d46496edf1842556c12f126dccbac252b486 authored over 5 years ago
Move wildcard test to generic parser

f9fb4bedfb64b038c222eb0b9983eda98f57c5a4 authored over 5 years ago
run cargo fmt

80aceba630da6015eb6f8be908298cdd416f41e6 authored over 5 years ago
Add support for escaping single quote strings

80dccf68856ef9ad019b25e86d0e2872b516c40c authored over 5 years ago
Fix qualified wildcard stringifying

5b464e6b1a9ca034739553997126bab2a07d8c77 authored over 5 years ago
Enable clippy lints by default in RLS

098d1c4a17c43357a24cd82831e1e23b4454a640 authored almost 6 years ago
Fix a clippy lint and reduce duplication in SQLType::to_string()

a3a8626e6bde2d7924f3428aa06101d00f54efbb authored almost 6 years ago
Rename SQLStatement::SQLSelect to SQLQuery

The name was confusing:
SQLStatement::SQLSelect(
SQLQuery {
body: SQLSetExpr::Select(SQLSe...

50a23101735d479b2c21286c6eeac911d09e7207 authored almost 6 years ago
Use assert_matches! instead of matching manually

To fix clippy warnings about assert!(true / false)

08bbce8992b2f5a86880ede500c580476c0ce0bd authored almost 6 years ago
Fix the clippy `assert!(false)` lint

https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants

While I don't...

dee30aabe04c56aa2c8a9fa810ed509a14d2330a authored almost 6 years ago
Fix a bunch of trivial clippy lints

c223eaf0aa51be6b6b136099dd7ae3382e5a67fd authored almost 6 years ago
Fix clippy if_same_then_else lint

https://rust-lang.github.io/rust-clippy/master/#if_same_then_else

There was a bug in parsing `T...

3df2223d953cf5782f86c2e0c0b59be6d8667c17 authored almost 6 years ago
Apply suggestions from `cargo fix --edition-idioms`

0634ec4a83d9bce7ba1e879d9a543db5171b5d90 authored almost 6 years ago
Switch to the Rust 2018 edition

This requires Rust 1.31 (from last year) to build, but is otherwise
compatible with the 2015-edi...

b12a19e197e4039552a9166b1a610fc2b974d646 authored almost 6 years ago
Fix clippy lints in "Support qualified function names"

9a244e059e508711bf3812c12b9a0f72e1628591 authored almost 6 years ago
Fix clippy lints in comma_separated_string

de057deff68a5b5bcd57acdee54ecce4c32d2a70 authored almost 6 years ago
Support OVER clause for window/analytic functions

Since this changes SQLFunction anyway, changed its `id` field to `name`,
as we don't seem to use...

d4de248c7343f1511a1075dcc3f3d359aab20bd8 authored almost 6 years ago
Use named fields in ExpressionWithAlias instead of a tuple

(This produces more natural JSON representation when serializing AST
with serde.)

085e8a6b0405526b07ee882d75f071b06f5ce635 authored almost 6 years ago
Update sample output in README

8c7e1d1c54907644220029571e2973bca9b5a8b4 authored almost 6 years ago
Support qualified function names

...e.g. `db.schema.func()`

4a5dc8dd4b9d7d7647ab0d3cddd2826cff66b6a4 authored almost 6 years ago
Introduce comma_separated_string() to reduce boilerplate in ToString impls

c8e7c3b3433d489fb9df4f4390a174ec6d4b486f authored almost 6 years ago
(cargo-release) start next development iteration 0.3.1

ef76baa7fd18341cc7d85caf60c9356d5d586c14 authored almost 6 years ago
bump version

1aa473389015fe856b9e15304012f218d8c9a443 authored almost 6 years ago
Merge pull request #49 from nickolay/select-distinct

Support SELECT DISTINCT, and a few minor tweaks

6ebd5dd81969ef5315222d4da5bf162cf840a7f6 authored almost 6 years ago
Simplify parse_function()

451513db5b0f9b0c2d53bf45c7ed13761b77d933 authored almost 6 years ago
Fix error text for unexpected token after NOT

e113dee7e87b4d532f509d988ed126d0bf394c7e authored almost 6 years ago
Reduce nesting of `if`s in SQLType::Decimal::to_string()

5263ee1e9e3f970959f515f86610670c5aad738a authored almost 6 years ago
Support SELECT DISTINCT

bbf1805729d4fb0238c889d258b092e64ad4bcad authored almost 6 years ago
Use the same order in #[derive()] for all AST types

(So that adding another trait can be done with a global search and replace.)

31b6076d0537d26590cd51669e5147769911435b authored almost 6 years ago
Merge pull request #46 from zhzy0077/feature/external_table

Thanks @zhzy0077 !

d9591cd999473150b7e4e39d92d9ae39c9987562 authored almost 6 years ago
merge CreateExternalTable & CreateTable.

d8f824c400ddf573ef7103631b6ba0677892912f authored almost 6 years ago
Delete test sql file.

35556593f5a35fb368841273a89c36ab5f8164a5 authored almost 6 years ago
Add unit tests.

26940920ac18ae9713f190bfe5b8ac56c8e89a10 authored almost 6 years ago
support create external table

f0f6082eff61ab005490b1b7bf38a0a8e749d865 authored almost 6 years ago
Merge pull request #43 from nickolay/master

d1b5668fd3b3077ad322e7edf2090c11ea572715 authored almost 6 years ago
bump version to 0.3.0, as requested in the PR

311f2ab429e103abede7a49c3589fc25f07d25cb authored almost 6 years ago
Merge branch 'upstream'

5de23b1e7890c8b7c1d9e8b887503a7ce5a0f6d9 authored almost 6 years ago
reapply the "Rework keyword/identifier parsing" PR

6dfe7c2413f7472066a15750426de4608b535060 authored almost 6 years ago
Merge pull request #45 from andygrove/update_gitter_badge

Update badge based on gitter email

bebaec4c797bce7cbd2f88a9c9bc0fa2a1b5eb0a authored almost 6 years ago
Update badge based on gitter email

eee1b3a2bd60d7daf9a3a5829ba3ef20f60d675e authored almost 6 years ago
Merge remote-tracking branch 'upstream/master'

5ba9912a9dc755426c2822d707731b56f92be3c6 authored almost 6 years ago
(cargo-release) start next development iteration 0.2.5-alpha.0

aa1f0faad47d5e4a86020f9bf11a1c437f3f0adb authored almost 6 years ago
(cargo-release) version 0.2.4

30de48c840702c68c82849b4d11c3ad5a24757eb authored almost 6 years ago
Merge pull request #42 from andygrove/revert-37-keywords

Revert "Rework keyword/identifier parsing"

4a355e6ddcdb4bab305cac9df0090602cf6c97ec authored almost 6 years ago
Revert "Rework keyword/identifier parsing"

43f4c6875fe45aeac2eb89bc8721dcb475bba1bc authored almost 6 years ago
(cargo-release) start next development iteration 0.2.4-alpha.0

391c53d5c9daa1ac068d1dc81048f746b7b56dbf authored almost 6 years ago
(cargo-release) version 0.2.3

6580bf10c0265f137432191048b183793d6fd1c7 authored almost 6 years ago
Merge pull request #37 from nickolay/keywords

Rework keyword/identifier parsing

75e2c0a64ffa85ac8f3627bc687dfa5b621492ed authored almost 6 years ago
Merge branch 'master' into keywords

7c9f62962d3a40cefe84d5620086a19f3c56906f authored almost 6 years ago
(cargo-release) start next development iteration 0.2.3-alpha.0

8c1d6a67fa6e6b7274232dee0ba216053e3ddd47 authored almost 6 years ago
(cargo-release) version 0.2.2

15704f1fbe96a8e0c693ecfae572f070eea3eefa authored almost 6 years ago