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
45c9aa1cc22e0e9ef4e370fee4cdf8070316570a authored over 5 years ago
`parse_value` handles parsing a non-integer value in expression context,
and we use parse_litera...
This is a follow-up to #109 which moved the handling of Token::Comma
from parse_table_and_joins ...
32cf36e64fbc63ca930fb3ab4d8c000d04eaa31d authored over 5 years ago
6b0a39678516046871823eb6e30bf1d47f0b03b2 authored over 5 years ago
as a follow-up to https://github.com/andygrove/sqlparser-rs/issues/52
cfb77912f78b3baa6aabc3ae6fec5629bd4a7316 authored over 5 years ago..and other formatting errors.
846f2ff1d96185662990a3c223c6332a14b048ff authored over 5 years ago26fac099b1eb68cb194e176055f5f98b856e9277 authored over 5 years ago
Revert "Add an AST visitor"
1998910bfacaf5667a81f6bc3413e2c1d627a59d authored over 5 years agob07c7a90f12b004508a281c52070c1fbde9ee451 authored over 5 years ago
Add an AST visitor
7ed6e038808cca3da7315a6638b89dca88f424ec authored over 5 years agoImprove consistency of binary/unary op nodes
f2fda57e36a3d5c4af620c41c11a75ffe2648918 authored over 5 years ago
It is useful downstream to have two separate enums, one for unary
operators and one for binary o...
These were previously called "BinaryExpr" and "Unary"; besides being
inconsistent, it's also not...
Standardize license headers
b379480b7ae9fb76cfe77e4232dc217b3d423f63 authored over 5 years agoProperly handle mixed implicit and explicit joins
5896f01ce0d6d0e1f2c5a08646650d93abf513bf authored over 5 years agoce171c2a3d23ef59b6e893d499405b396d41e729 authored over 5 years ago
Parse a query like
SELECT * FROM a NATURAL JOIN b, c NATURAL JOIN d
as the SQL specificati...
b841dccc2cf85d0be1b86c361f9351e485822c56 authored over 5 years agoMinor code clean-ups
518c8833d212c476d1cbc3f31f2694aa497c3484 authored over 5 years agoSupport interval literals
2d1e05e21d077251da53731c0b0f851cb65ea387 authored over 5 years ago2798ddf5fdc245ea8e5f8e71f86fc6036c35a7e8 authored over 5 years ago
We don't have the tests checked by clippy on CI, despite [passing the
`--all-targets`](https://g...
b6dac5099d0964608d053adbb3dde2f2ec58bfc1 authored over 5 years ago
ab88e02f0d7ffe206dec149fff6cdea8c069250e authored over 5 years ago
I could probably look into using an existing crate like
https://github.com/fitzgen/peeking_take_...
ebc5efda9837143fb1526b713962c5d5f21fc6e1 authored over 5 years ago
Transaction support
5536cd1f9e962b4723dd89a2fb573aa556a9c576 authored over 5 years agoParse column constraints in any order
7e96d81b4740904da6738d621e57b1e9161c2cfd authored over 5 years ago
Co-authored-by: Samuel Marks <[email protected]>
Co-authored-by: Nikhi...
Test that redundant nesting is supported
4a5099fdbab4eb3a56f52528f65fe21eed6c0628 authored over 5 years ago
CREATE TABLE t (a INT NOT NULL DEFAULT 1 PRIMARY KEY) is as valid as
CREATE TABLE t (a INT DEFAU...
SELECT * FROM (((SELECT 1))) is just as valid as
SELECT * FROM (SELECT 1). Add a test to ensure ...
Support nested joins
5f9f17de8a61b116b004e48c83d09060b3047cb7 authored over 5 years agoFix precedence of unary NOT
fc5e662b9106051ac40d941ad23172f1b0b1804a authored over 5 years ago
get_next_precedence deals with left-binding power, not right binding
power. Therefore, when it e...
ee49af3f526798f92c8dae4d224df963f60cfdb5 authored over 5 years ago
Standardize the license header, removing the Grove Enterprise copyright
notice where it exists p...
Basic date/time support
1f8708390675254794da11b38618daa01316e3f6 authored over 5 years agoed3ed26bb175522fee28989bcf041dfc645dedde authored over 5 years ago
Support EXTRACT function-like operator
11fc8334332b18a8442c60f62043b11059377705 authored over 5 years agoSupport column names in more places
4c2722280dd958eb1d8572fd96847eaef81e20af authored over 5 years ago
A table alias can specify new names for the columns within the aliased
table, in addition to a n...
A `CREATE VIEW` statement may provide names for its columns that
override the names of the colum...
Support CREATE TABLE with no columns
fdbf64c64d627e375ad6bf545092910e8c680ec3 authored over 5 years ago
The EXTRACT function, for extracting components of a date from a
timestamp, has special syntax: ...
Speed up CI
2f4cd8f6c895c105d4e5df184b36d35ef8f364e7 authored over 5 years agoSupport UPDATE statements
a594375966d69286c8ab9124740548e5980c8d33 authored over 5 years ago
We weren't making very effective use of the cache before, leading to
10m+ builds, as `cargo inst...
This prevents cargo coveralls from downloading it and compiling it on
the fly.
This isn't required by anything, but newer distributions tend to boot
faster in Travis.
Support arbitrary WITH options for CREATE [TABLE|VIEW]
6fceba8aa1c62560f57eeb544223a73b010146ab authored over 5 years ago
Both Postgres and MSSQL accept this syntax, though the particular
options they accept differ.
Fix merge skew by implementing Hash for SQLValues
1931c76eb8b3c7ece0655d03d61d93f2b29cacc7 authored over 5 years agofa3cf732d56a5efd6db53d8cdb14ed80175cdc63 authored over 5 years ago
Support hexadecimal string literals
b12fb34f3df99f1846c2368022320f36c5134769 authored over 5 years agoImprove VALUES-related syntax parsing
b8ba1881914f4e9eb67445eb7690e819597c46c0 authored over 5 years agoeba398326842f611d1ab925a277c38b3b1b17a32 authored over 5 years ago
Implement Hash on all AST nodes
057518b37705a4428ec0888e8b901f263229b424 authored over 5 years agoSupport EXISTS subqueries
7aff70772be8808390e0e60457062f2352ffdeb5 authored over 5 years ago
INSERT takes arbitrary queries as sources, not just VALUES clauses. For
example, `INSERT INTO fo...
VALUES clauses are not just valid in INSERT statements. They're also
valid (basically) anywhere ...
Fix #5.
975106b20772d69f54c237bdc5a9ddd45d0a8ad9 authored over 5 years ago
It is convenient for downstream libraries to be able to stash bits of
ASTs into hash maps, e.g.,...
Extract a SQLFunction struct
a3aaa49a7e8cab2e990bd73d953bc877c572059d authored over 5 years agoParse DECIMAL and DEC aliases for NUMERIC type
1ddef7aa71baab637aad370e0a0ddcf94e9620ba authored over 5 years agoRefactor parse_joins
85ba953ea1c56edbcde2f86cf5f7d851026c34e6 authored over 5 years agoFix #10.
1cef68e51083bc99ebfae2be875718c8869e294a authored over 5 years agoThis is weird, but supported by PostgreSQL.
b3a2a6be48700e26c2cbb607745ac99b688dac31 authored over 5 years ago
This variant is getting rather large, and it's useful downstream to be
able to pass around SQLFu...
38fc920d7c3f5a37c86195ad8bb99d1c1737187e authored over 5 years ago
- reduce duplication in the handling of implicit/cross joins and make
the flow of data slightl...
- use `if !self.consume_token(&Token::Comma) { break; }` to consume the
comma and exit the loo...
This block parses one of:
- `[ INNER ] JOIN <table_factor> <join_constraint>`
- `{ LEFT | RIGHT ...
Internal improvements to Parser::next_token/prev_token
This reduces the number of helper func...
2308c1c6f7c9176aafaf6e576054a8619d595c60 authored over 5 years ago
Before this `next_token()` would only increment the index when returning
`Some(token)`. This mea...
- Avoid cloning whitespace tokens in `peek_nth_token()` by using a
&Token from `tokens.get()` ...
* Rewrite parsing of `ALTER TABLE ADD CONSTRAINT`
* Support constraints in CREATE TABLE
* Chan...
Enable Clippy and rustfmt in CI
5847a16fff3f6577415f71906130f5fd3a1f6f27 authored over 5 years agoFix the precedence of NOT LIKE
1cc9d2d6f5c9d5b407a1e891010de82c8cffc20c authored over 5 years agoSupport for MSSQL identifier and alias parsing rules
58420cab615fd8c5b2ebeaadec0e25ca5a327416 authored over 5 years ago
The tokenizer emits a separate Token for +/- signs, so the value of
Value::Long() (as well as of...
Since other ALTER statements will have separate sub-commands.
8569a61fd0ac5599f060a94b6577ad9545d902fe authored over 5 years ago
<table element> ::= ... | <table constraint definition> | ...
https://jakewheat.github.io/sql-ov...
At least MSSQL supports it, not sure about others.
0407ed2b5747068e16e3a727adeb05025187525e authored over 5 years ago
- merge PrimaryKey and UniqueKey variants
- support `CHECK` constraints, removing the separate `...
93c90001028a6d0a55e7da6620b31af1d747bcb9 authored over 5 years ago
T-SQL supports non-standard `[...]` quoting in addition to the widely
supported and standard `"....
e6f5ff2926e44fc20a261e114fe5d54d3f489bf1 authored over 5 years ago
Add FETCH and OFFSET support, and LATERAL <derived table>
721c24188a9ba91308fa103abeb47ca7217d8519 authored over 5 years ago
NOT LIKE has the same precedence as the LIKE operator. The parser was
previously assigning it th...
This will be used in a future commit, where looking ahead by two tokens
is important.
2d00ea7187cb80920218de436d6e823e3f846d5b authored over 5 years ago
fe10fac0ad5d61969986854e327ee1866cb39217 authored over 5 years ago
Add LIMIT as RESERVED_FOR_TABLE_ALIAS
202464a06a0bc628a7de451d8d82327f6f6a3872 authored over 5 years ago
The nightly toolchain often doesn't have clippy available. Plus, it's
useful to verify we're not...
b2c93bd969b80c65f46c43988e714a9eee39dee1 authored over 5 years ago
Support nested expressions in BETWEEN
d80f9f3a7a559781fad2ed6ab0aff3af577713cc authored over 5 years agoSupport COUNT(DISTINCT x) and similar
646479e56c9ba50634b170c0d8a076fb572458dc authored over 5 years agoSupport SELECT ALL
86a2fbd8e4528d3ece777e4c6f01c67eee2e469d authored over 5 years ago