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

fix tests errors

d7ac4d7c432aaaa83f8cdcb3fd436f3c01222304 authored over 1 year ago by Jovansonlee Cesar <[email protected]>
Prepare for 0.7.5

18d718899abb5a89d1cbcef8229ece37497afb66 authored over 3 years ago by Jovansonlee Cesar <[email protected]>
formatting

479d24d27ce4855e4e8aede65df00ae83f432247 authored over 3 years ago by Jovansonlee Cesar <[email protected]>
Remove the ROWS keyword at the end as it is not supported in mysql, but will work just find with postgresql and sqlite

c151aaf54c7eb7b4757d9ac82ceb2388b1e1eea2 authored about 4 years ago by Jovansonlee Cesar <[email protected]>
Prepare for 0.7.4 release

8190c5ced5e399127eb1a6b621bb0319b17f7ebc authored about 4 years ago by Jovansonlee Cesar <[email protected]>
Add IN as binary operator and Expr::ValueList

1910b1a10eb3914418916bca687ea7271675ac51 authored about 4 years ago by Jovansonlee Cesar <[email protected]>
prepare for 0.7.3

cfb83b8d2d5b5298273f5ba5ed092504c84746d1 authored about 4 years ago by Jovansonlee Cesar <[email protected]>
Add support for DEFAULT values

db38365c499668db383f9380301e8969a5092cfc authored about 4 years ago by Jovansonlee Cesar <[email protected]>
bump up version

6efa8a8632dd87ea20a18997db6e8222e09326a3 authored about 4 years ago by Jovansonlee Cesar <[email protected]>
Expose ast::Value in the crate root

ac660b6651d6426bc8a5be8eef7653d1e38f6903 authored about 4 years ago by Jovansonlee Cesar <[email protected]>
Add support for ILIKE operator, which is supported in postgresql

9db973f0ad9112c67d03e4172f4ca8a4c8b9afd3 authored about 4 years ago by Jovansonlee Cesar <[email protected]>
prepare for 0.7.1 release

fd49bcfae1d3d843c03b1537eed65d3cbc5abd9d authored about 4 years ago by Jovansonlee Cesar <[email protected]>
Add deny warnings

2718e72129a872a786d0ea01cbdcef8c1de18721 authored over 4 years ago by Jovansonlee Cesar <[email protected]>
bump up version

bf14521e8a91d6fdf8b4a7d831019dae75792e90 authored over 4 years ago by Jovansonlee Cesar <[email protected]>
Restart changelog and update readme

ac6e6f64c50a7008f43cc359ab819afaf8105835 authored over 4 years ago by Jovansonlee Cesar <[email protected]>
IF NOT EXISTS must appear after TABLE keyword

5252399024d1c9c94d093c4cfc5f4ebac580f44a authored almost 5 years ago by Jovansonlee Cesar <[email protected]>
Implement IF NOT EXIST for CREATE TABLE

Fix tests to the new name sql-ast

97b2471706e2c0d5508b6ffbe2e75887e2b326e0 authored almost 5 years ago by Jovansonlee Cesar <[email protected]>
Prepare for 0.6.0 release

cc3798f2bc9c6db391a4f38057cf6c4e45bde2e1 authored almost 5 years ago by Jovansonlee Cesar <[email protected]>
Add ParameterizedValue in SetExpr

9826c736a273c3f56191c05dca9bf83c28cc0137 authored almost 5 years ago by Jovansonlee Cesar <[email protected]>
Use the name sql-ast

4f73f2baa25f91c3b5eff7e1491dc000d9544322 authored almost 5 years ago by Jovansonlee Cesar <[email protected]>
Implement DROP COLUMN in alter table in addition to ADD COLUMN

fddf32612d88d070c4ec6a3d25aa74d64cbd4717 authored about 5 years ago by Jovansonlee Cesar <[email protected]>
Remove unreachable variant from the parse_alter_table_constraints test

243caacf880312144ae74bfe44116b3d7e789359 authored about 5 years ago by Jovansonlee Cesar <[email protected]>
Remove warning of unused variable

c62db522c6a5a7b7476c1df34d4dfd541601069b authored about 5 years ago by Jovansonlee Cesar <[email protected]>
Remove println! debugging

abc90b210365782511d8885bb4836b72ffb5a9fd authored about 5 years ago by Jovansonlee Cesar <[email protected]>
Implement ADD COLUMN operation in ALTER TABLE statement

7de437b51e42f4e001703ef36acf0993c9bc182c authored about 5 years ago by Jovansonlee Cesar <[email protected]>
Merge pull request #143 from apparebit/quote-id-quote

Support quoted identifiers in AST as well

4cdd6e2f841d6fab2eba284d22c58cbe6bd6c781 authored about 5 years ago by Nikhil Benesch <[email protected]>
Turn type Ident into struct Ident

The Ident type was previously an alias for a String. Turn it into a full
fledged struct, so that...

b1cbc551285d6afef296f470207b8a6281ba5bec authored about 5 years ago by Robert Grimm <[email protected]>
Merge pull request #142 from andygrove/github-action

Add Github Action

9b2287f14cdd1d5ac47d293aa1beddf77520c8d0 authored about 5 years ago by Andy Grove <[email protected]>
format

a2613f9dd1fe9829bcf690f734d328c441c19747 authored about 5 years ago by Andy Grove <[email protected]>
stable rust

0687d3aca8e343a81e5da23a0ab56f831958bb51 authored about 5 years ago by Andy Grove <[email protected]>
use stable rust

7730e5762a1a5ac50909601c8b64071c3a1ce27b authored about 5 years ago by Andy Grove <[email protected]>
Merge pull request #141 from andygrove/changelog-0.5.0

Update CHANGELOG.md for 0.5.0

8c882949662b7c9ea23af789edb5843a24a412dd authored about 5 years ago by Nickolay Ponomarev <[email protected]>
test

41eda23ede3b536b132bcc3ae96b332f86982ad4 authored about 5 years ago by Andy Grove <[email protected]>
experimenting with github actions

60448382c21abf53c5c35c1bfa22c47f39e902b3 authored about 5 years ago by Andy Grove <[email protected]>
Add github action

9b49db35ff996e09263115e993718b2aead2e576 authored about 5 years ago by Andy Grove <[email protected]>
Update CHANGELOG.md for 0.5.0

489f157f1791fae6611d86eee311a16651f3a6c1 authored about 5 years ago by Nickolay Ponomarev <[email protected]>
version bump

adeb3f1f529b386bc5b5eef634b7255d05561227 authored about 5 years ago by Andy Grove <[email protected]>
version bump

8757a33013485db878c12fa90a4a7427c7db80c3 authored about 5 years ago by Andy Grove <[email protected]>
Merge pull request #139 from gaffneyk/master

Allow semicolon after start transaction

c7021ed145c59f9684bac6a14d63ddb66ec4aa17 authored over 5 years ago by Nikhil Benesch <[email protected]>
Parse START TRANSACTION when followed by a semicolon

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

2bb38c9b277b72f1d384ce83cb7377b1bf0225c3 authored over 5 years ago by gaffneyk <[email protected]>
Merge pull request #138 from andygrove/fix-skew

Fix merge skew with number literals

abf68c6af6a90794d6cb06d19db09afd15df1a5d authored over 5 years ago by Nikhil Benesch <[email protected]>
Fix merge skew with number literals

b8fe800da5b65013ad4e2c82bb4b53f682a85691 authored over 5 years ago by Nikhil Benesch <[email protected]>
Merge pull request #135 from andygrove/show-columns

Support MySQL `SHOW COLUMNS` statement

e9c5567b0403d3b86e0db072e479472474c1b3a6 authored over 5 years ago by Nikhil Benesch <[email protected]>
Merge pull request #130 from andygrove/decimal

Don't lose precision when parsing decimal fractions

f4df34074cfb75e5a76b30b96520a38d3dd89e60 authored over 5 years ago by Nikhil Benesch <[email protected]>
Optionally parse numbers into BigDecimals

With `--features bigdecimal`, parse numbers into BigDecimals instead of
leaving them as strings.

a0aca824e84ea146c7357f35b6c0bd5d2550418a authored over 5 years ago by Nikhil Benesch <[email protected]>
Don't lose precision when parsing decimal fractions

The SQL standard requires that numeric literals with a decimal point,
like 1.23, are represented...

b5621c0fe8f37e8723ca62f8204e15db2eafe61c authored over 5 years ago by Nikhil Benesch <[email protected]>
Support `SHOW <var>` and `SET <var>`

e1ded184f87df9f229841f5103f4c7f8827383a9 authored over 5 years ago by Nikhil Benesch <[email protected]>
Merge pull request #121 from andygrove/ci-fmt

Check that CI enforces rustfmt

2bef9ec30a0ed20c73dbf44d5ae19f65c9c844ac authored over 5 years ago by Nikhil Benesch <[email protected]>
Support MySQL `SHOW COLUMNS` statement

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

f64928e99458cd2886dc4f84abd8405bccd8de33 authored over 5 years ago by Brandon W Maister <[email protected]>
Merge pull request #134 from umanwizard/expect_keywords

add `expect_keywords` function

35a20091ea12d23d30b67cb774e602a7bba29631 authored over 5 years ago by Nikhil Benesch <[email protected]>
Add and use `expect_keywords` function

The code for parsing chains of expected keywords is more readable with
this helper function.

Co...

41d4ea480ff27d95528c6d095e9c9c088f72eb1b authored over 5 years ago by Brennan Vincent <[email protected]>
Add missing license header

070d0192bf5785e765e4ca49addabf980a80ab11 authored over 5 years ago by Nikhil Benesch <[email protected]>
Actually check rustfmt in CI

The previous incantation was simply *never* running rustfmt in CI,
rather than only running rust...

bc97543df312402e1c72a09fca568fa5cb0aef56 authored over 5 years ago by Nikhil Benesch <[email protected]>
Merge pull request #131 from nickolay/pr/refactoring

Assorted code simplification and doc improvements

391a54b5a3f54de102d021621c73c9e2dbfd4053 authored over 5 years ago by Nickolay Ponomarev <[email protected]>
Add parse_comma_separated to simplify the parser

To use the new helper effectively, a few related changes were required:

- Each of the parse_......

03efcf6fa6ac2745ae27f6188e93863ae3ea9808 authored over 5 years ago by Nickolay Ponomarev <[email protected]>
Update Statement::Drop doc comment

f11d74a64de2c90770c433951492344aec2067a7 authored over 5 years ago by Nickolay Ponomarev <[email protected]>
Amend WindowFrame docs

The note about WindowFrameBound::Following being only valid "in
WindowFrame::end_bound" was both...

086ba1281cad76a59fbd811ca03a0cb43e899fd2 authored over 5 years ago by Nickolay Ponomarev <[email protected]>
Move ObjectName closer to Ident in mod.rs

64e7be0c685541f3d37960ec19da777c8e335d41 authored over 5 years ago by Nickolay Ponomarev <[email protected]>
Simplify parse_window_frame

It used to consume the `RParen` closing the encompassing `OVER (`, even
when no window frame was...

f31636d3397f7156759ee667f3700e878df8f539 authored over 5 years ago by Nickolay Ponomarev <[email protected]>
Remove parse_expr_list, as it's now trivial

9314371d3b728617fef95d06de5e4c7c5d81ddb9 authored over 5 years ago by Nickolay Ponomarev <[email protected]>
Simplify Display implementations introduced in #124

ac8ba107e3a69e938ca00c0a24173b68aa18c669 authored over 5 years ago by Nickolay Ponomarev <[email protected]>
Change write! to write_str for better rustfmt formatting

1b31f0373237cbf1d6e2ec163dc991e30db8f246 authored over 5 years ago by Nickolay Ponomarev <[email protected]>
Merge pull request #129 from nickolay/pr/changelog

Add a changelog

275e6b13c91c0ebfa9f3cb654d5ad78deca2b77d authored over 5 years ago by Nickolay Ponomarev <[email protected]>
Add changelog

7c153e1ab06d9cd6e2aa77e39d876b081a233fbe authored over 5 years ago by Nickolay Ponomarev <[email protected]>
Merge pull request #128 from andygrove/readme

README: update for recent improvements

8cd64e7b946899748702c09f68163d923a0e0805 authored over 5 years ago by Nikhil Benesch <[email protected]>
README: update for recent improvements

Remove outdated bits that claim shoddy SQL support and code
structure--we're much better on thos...

4172b6831950e9b3b3eeb42b28563cbc420fbf87 authored over 5 years ago by Nikhil Benesch <[email protected]>
(cargo-release) start next development iteration 0.4.0

7a4eb505b31dd6a988917f82113164e483853b00 authored over 5 years ago by Andy Grove <[email protected]>
(cargo-release) version 0.4.0

4f805d6c96771cbb04e62fdde78736173c472fab authored over 5 years ago by Andy Grove <[email protected]>
Merge pull request #124 from vemoo/impl-display

implement fmt::Display instead of ToString

ed76cd68f8da83c0c8429d89335057e58fc6ca17 authored over 5 years ago by Nikhil Benesch <[email protected]>
Merge pull request #126 from nickolay/pr/renames-comments

Update comments after the renaming done in PR #105

b6538592da408f42b6fef581ca96351ca339b53a authored over 5 years ago by Nickolay Ponomarev <[email protected]>
Update comments after the renaming done in PR #105

7d4b488336aa7ee9bcee553d4d7f2b955b00898b authored over 5 years ago by Nickolay Ponomarev <[email protected]>
implement fmt::Display instead of ToString

b2b159fed1c4b7726428a1e5ab31ec276164d2c5 authored over 5 years ago by Bernardo <[email protected]>
Merge pull request #123 from benesch/eq

Implement Eq alongside Hash

cdba43682f20fcfbbc39d9401c9f1869e9693030 authored over 5 years ago by Nikhil Benesch <[email protected]>
Implement Eq alongside Hash

It turns out implementing Hash alone is not very useful, as
std::collection::HashMap keys are re...

add898c2bd4d4956bdc946035fead854d7a967bf authored over 5 years ago by Jamie Brandon <[email protected]>
Merge pull request #122 from benesch/sqlprefix-missed

Remove "SQL" prefix from "SQLDateTimeField" struct

f7199ec99fceb677042d20756e4a38999ce3442d authored over 5 years ago by Nikhil Benesch <[email protected]>
Remove "SQL" prefix from "SQLDateTimeField" struct

I realized a moment too late that I'd missed a type name in
when removing the "SQL" prefix from ...

106c9f8efb5cfe185837d01758231e6faaf5dd99 authored over 5 years ago by Nikhil Benesch <[email protected]>
Merge pull request #105 from benesch/renames

Remove "SQL" from types (and other renames)

bafb20746f70cf3893d00503d1159b3aeaf8289b authored over 5 years ago by Nikhil Benesch <[email protected]>
Remove "SQL" prefix from types

The rationale here is the same as the last commit: since this crate
exclusively parses SQL, ther...

ac555d7e860960fad54ed02626f1decdcddb2e5a authored over 5 years ago by Nikhil Benesch <[email protected]>
Remove "sql" prefix from module names

Since this crate only deals with SQL parsing, the modules are understood
to refer to SQL and don...

cf655ad1a68f4d079019e43c5cda363897cd7a49 authored over 5 years ago by Nikhil Benesch <[email protected]>
Merge pull request #119 from andygrove/astnode-expr

Rename ASTNode to Expr

5b23ad1d4c45e4d5866b6e33bace33246c1c6f09 authored over 5 years ago by Nikhil Benesch <[email protected]>
Merge pull request #120 from nickolay/pr/outer-apply

[mssql/oracle] Support CROSS/OUTER APPLY

3c401d5e4f43a0d80331244f66ae950bd0a592f9 authored over 5 years ago by Nickolay Ponomarev <[email protected]>
Rename ASTNode to Expr

The ASTNode enum was confusingly named. In the past, the name made
sense, as the enum contained ...

646d1e13ca05589e085c9c7ce2f8cfa9ee81ed34 authored over 5 years ago by Nikhil Benesch <[email protected]>
[mssql] Parse CROSS/OUTER APPLY

T-SQL (and Oracle) support non-standard syntax, which is similar in
functionality to LATERAL joi...

4294581ded9f414297335ada41b8d7040be6d15b authored over 5 years ago by Nickolay Ponomarev <[email protected]>
Fix bad merge in #118

0f6bf1525841a4024667938df01c128428c8dd36 authored over 5 years ago by Nickolay Ponomarev <[email protected]>
Merge pull request #118 from andygrove/outer-join

Don't silently accept naked OUTER JOINS

e6b26330df8947abc0a28c1bc4ba044a8f46d350 authored over 5 years ago by Nikhil Benesch <[email protected]>
Don't silently accept naked OUTER JOINS

`SELECT * FROM a OUTER JOIN b` was previously being parsed as an inner
join where table `a` was ...

2c9963570974744ce9950b73c5f831cfcc7ce989 authored over 5 years ago by Nikhil Benesch <[email protected]>
Merge pull request #116 from nickolay/pr/more-followups

Support HAVING/LIMIT/OFFSET/FETCH without FROM and other follow-ups

785754374963524064e514ebbe3cc6d5ad0350b7 authored over 5 years ago by Nickolay Ponomarev <[email protected]>
Add a comment about RESERVED_FOR_TABLE_ALIAS to parse_table_and_joins

a37ba089ecc13bb6539e18e70dafd67173c487dc authored over 5 years ago by Nickolay Ponomarev <[email protected]>
Support HAVING without GROUP BY

...which is weird but allowed:
https://jakewheat.github.io/sql-overview/sql-2011-foundation-gram...

eb3450dd51f07805f292a42bc22cb4fda94ee9d5 authored over 5 years ago by Nickolay Ponomarev <[email protected]>
Allow LIMIT/OFFSET/FETCH without FROM

Postgres allows it, as does ANSI SQL per the <query expression> definition:
https://jakewheat.gi...

d60bdc0b92900b96b9297264fccc3b9519dd3217 authored over 5 years ago by Nickolay Ponomarev <[email protected]>
Use FETCH_FIRST_TWO_ROWS_ONLY in tests to reduce duplication

c1509b36ec1f2df5bd257453587fa74ba008500f authored over 5 years ago by Nickolay Ponomarev <[email protected]>
Don't duplicate all the parse_simple_select assertions in the LIMIT test

f87e8d51584c8cff40ac4f2dc75309d49d491921 authored over 5 years ago by Nickolay Ponomarev <[email protected]>
Use TableAlias in Cte

3c073a4c34abfdc4f1ba59dc50afc232db5ea340 authored over 5 years ago by Nickolay Ponomarev <[email protected]>
Update comments now that get_precedence is no more

4f239745bc7a8978e35c0deffe9ec79acb6a2ba7 authored over 5 years ago by Nickolay Ponomarev <[email protected]>
Merge pull request #115 from nickolay/pr/followups

Doc improvements and follow-ups to the recent PRs

dc26c4abd589d477789f5d21af0bb1a6c3ba63e2 authored over 5 years ago by Nickolay Ponomarev <[email protected]>
Merge pull request #111 from benesch/join-tweaks

Refine join parsing

98a06d6d237e2c7f1e13380ae5f55cdc5c38edbb authored over 5 years ago by Nikhil Benesch <[email protected]>
Update the error message in parse_query_body

535505bb96ea901e162489171d5cdd8e1162da1a authored over 5 years ago by Nickolay Ponomarev <[email protected]>
Require that nested joins always have one join

The SQL specification prohibits constructions like

SELECT * FROM a NATURAL JOIN (b)

where ...

4ee461bae4ad63879ebb36d59782e180e22d051d authored over 5 years ago by Nikhil Benesch <[email protected]>
Handle derived tables with set operations

This commit adds support for derived tables (i.e., subqueries) that
incorporate set operations, ...

8bee74277a233bb4489bf4195124844edaa697db authored over 5 years ago by Nikhil Benesch <[email protected]>
Add a test for parsing the NULL literal

(Coveralls notices we didn't have one.)

5c7ff79e78ae0a96ee6c28fe0978f185c4f5b9c2 authored over 5 years ago by Nickolay Ponomarev <[email protected]>