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

Use self.expected() more

45c9aa1cc22e0e9ef4e370fee4cdf8070316570a authored over 5 years ago
Remove unused parse_literal_double

`parse_value` handles parsing a non-integer value in expression context,
and we use parse_litera...

f18fbe5cda7debc2b1a7cece14e318b65a8a23b6 authored over 5 years ago
Reduce nesting in parse_table_and_joins

This is a follow-up to #109 which moved the handling of Token::Comma
from parse_table_and_joins ...

7041850b33615e85b02816733baaf0d2ad251643 authored over 5 years ago
Add a testcase, which passes thanks to PR #109

32cf36e64fbc63ca930fb3ab4d8c000d04eaa31d authored over 5 years ago
Remove table_key.rs accidentally re-added in PR #79

6b0a39678516046871823eb6e30bf1d47f0b03b2 authored over 5 years ago
Mention SQLSelectItem::Wildcard in ASTNode::SQLWildcard docs

as a follow-up to https://github.com/andygrove/sqlparser-rs/issues/52

cfb77912f78b3baa6aabc3ae6fec5629bd4a7316 authored over 5 years ago
Fix intra_doc_link_resolution_failure in `cargo doc`

..and other formatting errors.

846f2ff1d96185662990a3c223c6332a14b048ff authored over 5 years ago
Update Value docs

26fac099b1eb68cb194e176055f5f98b856e9277 authored over 5 years ago
Merge pull request #113 from andygrove/revert-78-visitor

Revert "Add an AST visitor"

1998910bfacaf5667a81f6bc3413e2c1d627a59d authored over 5 years ago
Revert "Add an AST visitor"

b07c7a90f12b004508a281c52070c1fbde9ee451 authored over 5 years ago
Merge pull request #78 from benesch/visitor

Add an AST visitor

7ed6e038808cca3da7315a6638b89dca88f424ec authored over 5 years ago
Merge pull request #112 from benesch/expr-consistency

Improve consistency of binary/unary op nodes

f2fda57e36a3d5c4af620c41c11a75ffe2648918 authored over 5 years ago
Split operators by arity

It is useful downstream to have two separate enums, one for unary
operators and one for binary o...

ae25dce24659d0edbf681811191dbb6df768c1e7 authored over 5 years ago
Standardize BinaryOp and UnaryOp nodes

These were previously called "BinaryExpr" and "Unary"; besides being
inconsistent, it's also not...

9e33cea9b8c19e16bcedde1d65693ca4d0406aae authored over 5 years ago
Merge pull request #79 from benesch/license

Standardize license headers

b379480b7ae9fb76cfe77e4232dc217b3d423f63 authored over 5 years ago
Merge pull request #109 from benesch/implicit-join-fix

Properly handle mixed implicit and explicit joins

5896f01ce0d6d0e1f2c5a08646650d93abf513bf authored over 5 years ago
Support VALUES and parenthesized SELECTs as top-level statements

ce171c2a3d23ef59b6e893d499405b396d41e729 authored over 5 years ago
Properly handle mixed implicit and explicit joins

Parse a query like

SELECT * FROM a NATURAL JOIN b, c NATURAL JOIN d

as the SQL specificati...

b841dccc2cf85d0be1b86c361f9351e485822c56 authored over 5 years ago
Merge pull request #110 from nickolay/pr/cleanups

Minor code clean-ups

518c8833d212c476d1cbc3f31f2694aa497c3484 authored over 5 years ago
Merge pull request #103 from benesch/intervals

Support interval literals

2d1e05e21d077251da53731c0b0f851cb65ea387 authored over 5 years ago
Support interval literals

2798ddf5fdc245ea8e5f8e71f86fc6036c35a7e8 authored over 5 years ago
Fix redundant closures in tests

We don't have the tests checked by clippy on CI, despite [passing the
`--all-targets`](https://g...

99768711dc393a7067d4482a674137798e480634 authored over 5 years ago
Use the same pattern to parse comma-separated lists of things

b6dac5099d0964608d053adbb3dde2f2ec58bfc1 authored over 5 years ago
Raise a TokenizerError when a delimited identifier is not closed before EOF

ab88e02f0d7ffe206dec149fff6cdea8c069250e authored over 5 years ago
Introduce peeking_take_while to simplify tokenizer

I could probably look into using an existing crate like
https://github.com/fitzgen/peeking_take_...

20637f0327746d75c75f8b6a4f76ae4ea5bd946d authored over 5 years ago
Reduce duplication in tokenizer by matching on Some('...') directly

ebc5efda9837143fb1526b713962c5d5f21fc6e1 authored over 5 years ago
Merge pull request #106 from offscale/transactions

Transaction support

5536cd1f9e962b4723dd89a2fb573aa556a9c576 authored over 5 years ago
Merge pull request #93 from benesch/col-constr-order

Parse column constraints in any order

7e96d81b4740904da6738d621e57b1e9161c2cfd authored over 5 years ago
Add basic support for transaction statements

Co-authored-by: Samuel Marks <[email protected]>
Co-authored-by: Nikhi...

582b25add698be30ba44ab67520318975ca39179 authored over 5 years ago
Merge pull request #108 from benesch/test-nesting

Test that redundant nesting is supported

4a5099fdbab4eb3a56f52528f65fe21eed6c0628 authored over 5 years ago
Parse column constraints in any order

CREATE TABLE t (a INT NOT NULL DEFAULT 1 PRIMARY KEY) is as valid as
CREATE TABLE t (a INT DEFAU...

ffa1c8f8531706776981708b82dd5a112bad888c authored over 5 years ago
Test that redundant nesting is supported

SELECT * FROM (((SELECT 1))) is just as valid as
SELECT * FROM (SELECT 1). Add a test to ensure ...

ccbd048ddab9fbc79d038af7c72d5dbb2fed17b5 authored over 5 years ago
Merge pull request #100 from benesch/nested-joins

Support nested joins

5f9f17de8a61b116b004e48c83d09060b3047cb7 authored over 5 years ago
Merge pull request #107 from benesch/prec

Fix precedence of unary NOT

fc5e662b9106051ac40d941ad23172f1b0b1804a authored over 5 years ago
Fix precedence of unary NOT

get_next_precedence deals with left-binding power, not right binding
power. Therefore, when it e...

525f4d75018d4f99f7ccc3577378e7c5bf5bda6a authored over 5 years ago
Add an AST visitor

ee49af3f526798f92c8dae4d224df963f60cfdb5 authored over 5 years ago
Standardize license headers

Standardize the license header, removing the Grove Enterprise copyright
notice where it exists p...

e78cf0483e5a087000a039d556444fbde7e27795 authored over 5 years ago
Support nested joins

Fix #83.

8fbf82deb04c1c131b53d007e5af09983fbfb5bf authored over 5 years ago
Merge pull request #99 from benesch/dates

Basic date/time support

1f8708390675254794da11b38618daa01316e3f6 authored over 5 years ago
Support parsing dates, times, and timestamps as strings

ed3ed26bb175522fee28989bcf041dfc645dedde authored over 5 years ago
Merge pull request #96 from benesch/extract

Support EXTRACT function-like operator

11fc8334332b18a8442c60f62043b11059377705 authored over 5 years ago
Merge pull request #98 from benesch/col-names

Support column names in more places

4c2722280dd958eb1d8572fd96847eaef81e20af authored over 5 years ago
Support aliasing columns

A table alias can specify new names for the columns within the aliased
table, in addition to a n...

9abcac350e8caaeced261eeceecf29a74f376e84 authored over 5 years ago
Support views with explicit column names

A `CREATE VIEW` statement may provide names for its columns that
override the names of the colum...

73ed68587916f2bd51e666c393ad5084330226d3 authored over 5 years ago
Merge pull request #94 from benesch/empty-create-table

Support CREATE TABLE with no columns

fdbf64c64d627e375ad6bf545092910e8c680ec3 authored over 5 years ago
Support EXTRACT function-like operator

The EXTRACT function, for extracting components of a date from a
timestamp, has special syntax: ...

d4847561829a59df45a135bdb701219adc82d64f authored over 5 years ago
Merge pull request #102 from benesch/ci-speedup

Speed up CI

2f4cd8f6c895c105d4e5df184b36d35ef8f364e7 authored over 5 years ago
Merge pull request #97 from benesch/update

Support UPDATE statements

a594375966d69286c8ab9124740548e5980c8d33 authored over 5 years ago
Improve CI caching

We weren't making very effective use of the cache before, leading to
10m+ builds, as `cargo inst...

610d6f830472bec8d06d71f786844514c99bfc29 authored over 5 years ago
Install kcov via APT

This prevents cargo coveralls from downloading it and compiling it on
the fly.

e753bd4f903943af6a981737431f4aa5a8aea4a8 authored over 5 years ago
Upgrade CI to Xenial

This isn't required by anything, but newer distributions tend to boot
faster in Travis.

b7125c979a9b00ac9d60ca46bf4fa34b8c8b8d9a authored over 5 years ago
Merge pull request #74 from benesch/with-options

Support arbitrary WITH options for CREATE [TABLE|VIEW]

6fceba8aa1c62560f57eeb544223a73b010146ab authored over 5 years ago
Support arbitrary WITH options for CREATE [TABLE|VIEW]

Both Postgres and MSSQL accept this syntax, though the particular
options they accept differ.

69f0082db63d1aecdea5794f7065b56b22ffbd04 authored over 5 years ago
Merge pull request #101 from benesch/merge-skew

Fix merge skew by implementing Hash for SQLValues

1931c76eb8b3c7ece0655d03d61d93f2b29cacc7 authored over 5 years ago
Fix merge skew by implementing Hash for SQLValues

fa3cf732d56a5efd6db53d8cdb14ed80175cdc63 authored over 5 years ago
Merge pull request #95 from benesch/hex-literals

Support hexadecimal string literals

b12fb34f3df99f1846c2368022320f36c5134769 authored over 5 years ago
Merge pull request #91 from benesch/from-values

Improve VALUES-related syntax parsing

b8ba1881914f4e9eb67445eb7690e819597c46c0 authored over 5 years ago
Support hexadecimal string literals

eba398326842f611d1ab925a277c38b3b1b17a32 authored over 5 years ago
Merge pull request #88 from benesch/hash

Implement Hash on all AST nodes

057518b37705a4428ec0888e8b901f263229b424 authored over 5 years ago
Merge pull request #90 from benesch/exists

Support EXISTS subqueries

7aff70772be8808390e0e60457062f2352ffdeb5 authored over 5 years ago
Support arbitrary INSERT sources

INSERT takes arbitrary queries as sources, not just VALUES clauses. For
example, `INSERT INTO fo...

14e07ebdda9c282dddc9c7bd995b78a07f93991d authored over 5 years ago
Support VALUES clauses in FROM

VALUES clauses are not just valid in INSERT statements. They're also
valid (basically) anywhere ...

9420070a0df44594351e96788d3b2dfccc3ea13e authored over 5 years ago
Support EXISTS subqueries

Fix #5.

975106b20772d69f54c237bdc5a9ddd45d0a8ad9 authored over 5 years ago
Implement Hash on all AST nodes

It is convenient for downstream libraries to be able to stash bits of
ASTs into hash maps, e.g.,...

c49352f39492e5d0dc1a4435e35638665fa6ae9b authored over 5 years ago
Merge pull request #89 from benesch/sqlfunction-struct

Extract a SQLFunction struct

a3aaa49a7e8cab2e990bd73d953bc877c572059d authored over 5 years ago
Merge pull request #92 from benesch/decimal-dec

Parse DECIMAL and DEC aliases for NUMERIC type

1ddef7aa71baab637aad370e0a0ddcf94e9620ba authored over 5 years ago
Merge pull request #87 from nickolay/pr/join-refactor

Refactor parse_joins

85ba953ea1c56edbcde2f86cf5f7d851026c34e6 authored over 5 years ago
Support UPDATE statements

Fix #10.

1cef68e51083bc99ebfae2be875718c8869e294a authored over 5 years ago
Support CREATE TABLE with no columns

This is weird, but supported by PostgreSQL.

b3a2a6be48700e26c2cbb607745ac99b688dac31 authored over 5 years ago
Extract a SQLFunction struct

This variant is getting rather large, and it's useful downstream to be
able to pass around SQLFu...

054a59df12476d9a29f84cca10b23f4234939255 authored over 5 years ago
Parse DECIMAL and DEC aliases for NUMERIC type

38fc920d7c3f5a37c86195ad8bb99d1c1737187e authored over 5 years ago
Refactor parse_joins, pt.2: implicit/cross/natural joins

- reduce duplication in the handling of implicit/cross joins and make
the flow of data slightl...

d0f2de06edb1d812d752adfda8a972ab88298126 authored over 5 years ago
Minor consume_token()-related simplifications

- use `if !self.consume_token(&Token::Comma) { break; }` to consume the
comma and exit the loo...

82065234167f038be1c8f7fe3f2760895ec286be authored over 5 years ago
Refactor parse_joins, pt.1: INNER/OUTER joins

This block parses one of:
- `[ INNER ] JOIN <table_factor> <join_constraint>`
- `{ LEFT | RIGHT ...

665b9df729f27a7a07566182763bf765fe920e4e authored over 5 years ago
Merge pull request #86 from nickolay/pr/token-refactor

Internal improvements to Parser::next_token/prev_token

This reduces the number of helper func...

2308c1c6f7c9176aafaf6e576054a8619d595c60 authored over 5 years ago
Allow calling `prev_token()` after EOF

Before this `next_token()` would only increment the index when returning
`Some(token)`. This mea...

e02625719e4d9d90392c11076e8bab558c82e0ca authored over 5 years ago
Reduce cloning of tokens

- Avoid cloning whitespace tokens in `peek_nth_token()` by using a
&Token from `tokens.get()` ...

1227fddd48882a19c99b45185e60396dbf06cd3a authored over 5 years ago
Merge pull request #65 from nickolay/pr/ddl-improvements

* Rewrite parsing of `ALTER TABLE ADD CONSTRAINT`
* Support constraints in CREATE TABLE
* Chan...

ebb82b8c8fd44e6706d9b0d7a3522cabc7c3acd7 authored over 5 years ago
Merge pull request #85 from benesch/clippy

Enable Clippy and rustfmt in CI

5847a16fff3f6577415f71906130f5fd3a1f6f27 authored over 5 years ago
Merge pull request #82 from benesch/not-prec

Fix the precedence of NOT LIKE

1cc9d2d6f5c9d5b407a1e891010de82c8cffc20c authored over 5 years ago
Merge pull request #66 from nickolay/pr/ms-identifiers-aliases

Support for MSSQL identifier and alias parsing rules

58420cab615fd8c5b2ebeaadec0e25ca5a327416 authored over 5 years ago
Change Value::Long() to u64, use u64 instead of usize

The tokenizer emits a separate Token for +/- signs, so the value of
Value::Long() (as well as of...

d9edc2588b91c6a6c71880203dd944b551593d21 authored over 5 years ago
Rename AlterOperation -> AlterTableOperation

Since other ALTER statements will have separate sub-commands.

8569a61fd0ac5599f060a94b6577ad9545d902fe authored over 5 years ago
Support parsing constraints in CREATE TABLE

<table element> ::= ... | <table constraint definition> | ...
https://jakewheat.github.io/sql-ov...

aab0c36443b59e4603893a3b23ec935a9c575e09 authored over 5 years ago
Allow trailing comma in CREATE TABLE

At least MSSQL supports it, not sure about others.

0407ed2b5747068e16e3a727adeb05025187525e authored over 5 years ago
Change ALTER TABLE constraints parsing

- merge PrimaryKey and UniqueKey variants
- support `CHECK` constraints, removing the separate `...

c69a1881c763704381b047c924651e2811ae19a7 authored over 5 years ago
[mssql] Support single-quoted column aliases

93c90001028a6d0a55e7da6620b31af1d747bcb9 authored over 5 years ago
[mssql] Support delimited identifiers in [square brackets]

T-SQL supports non-standard `[...]` quoting in addition to the widely
supported and standard `"....

d0a782d8cccbc06ae85c19797292f98079b3c9d4 authored over 5 years ago
[example-cli] Support parsing with different dialects

e6f5ff2926e44fc20a261e114fe5d54d3f489bf1 authored over 5 years ago
Merge pull request #69 from thomas-jeepe/master

Add FETCH and OFFSET support, and LATERAL <derived table>

721c24188a9ba91308fa103abeb47ca7217d8519 authored over 5 years ago
Fix the precedence of NOT LIKE

NOT LIKE has the same precedence as the LIKE operator. The parser was
previously assigning it th...

90bcf55a6a3ba48485891273ca087799ada57ba5 authored over 5 years ago
Introduce a peek_nth_token method

This will be used in a future commit, where looking ahead by two tokens
is important.

f55e3d5305fc306ffa045f51e70d2a10e0c517b7 authored over 5 years ago
Add lateral derived support

2d00ea7187cb80920218de436d6e823e3f846d5b authored over 5 years ago
Add FETCH and OFFSET support

fe10fac0ad5d61969986854e327ee1866cb39217 authored over 5 years ago
Merge pull request #68 from ivanceras/master

Add LIMIT as RESERVED_FOR_TABLE_ALIAS

202464a06a0bc628a7de451d8d82327f6f6a3872 authored over 5 years ago
Run CI on stable Rust

The nightly toolchain often doesn't have clippy available. Plus, it's
useful to verify we're not...

d5fcd344380b90da6a9703281fb110d88437f35c authored over 5 years ago
Enforce clippy and rustfmt in CI

b2c93bd969b80c65f46c43988e714a9eee39dee1 authored over 5 years ago
Merge pull request #80 from benesch/between-expr

Support nested expressions in BETWEEN

d80f9f3a7a559781fad2ed6ab0aff3af577713cc authored over 5 years ago
Merge pull request #77 from benesch/count-distinct

Support COUNT(DISTINCT x) and similar

646479e56c9ba50634b170c0d8a076fb572458dc authored over 5 years ago
Merge pull request #76 from benesch/select-all

Support SELECT ALL

86a2fbd8e4528d3ece777e4c6f01c67eee2e469d authored over 5 years ago