Commit Graph

51 Commits

Author SHA1 Message Date
Simon Binder 292dd9946d
Port more tests over to new analyzer 2022-10-29 17:30:18 +02:00
Simon Binder 81679b8ff1
Fix formatting some Dart placeholders 2022-10-23 18:13:40 +02:00
Simon Binder aa5cb69799
Support indices in new analyzer 2022-09-10 23:22:39 +02:00
Simon Binder 098fcc2d1b
Parse new join kinds from sqlite 3.39 2022-05-26 23:23:02 +02:00
Simon Binder d330c9b001
sqlparser: Support new syntax for `IS` expressions 2022-05-26 22:24:41 +02:00
Simon Binder e503bc68a5
New implementation for reference scopes 2022-05-25 23:32:15 +02:00
Daniel Brauner 5380a18450 Minor bug fixes 2022-04-06 20:14:13 +02:00
Simon Binder c9e22bf8d2
Parse non-window aggregate expressions 2022-03-08 10:58:40 +01:00
Simon Binder 93d328f056
Rename `moor` to `drift` in `sqlparser` 2022-02-26 21:38:28 +01:00
Simon Binder 6bb870458f
Analysis for sqlite 3.38 2022-02-23 22:06:42 +01:00
Simon Binder 518fdce2e9
Add parentheses around conflict target (#1704) 2022-02-21 18:43:48 +01:00
Simon Binder 1d1d0c783a
Fix CI test failures 2022-01-29 21:50:33 +01:00
Simon Binder 3d0a29fe77
Remove uncessary space 2022-01-28 22:04:24 +01:00
Simon Binder 6b6cd30a0c
Move nested query analysis to drift_dev 2022-01-28 21:55:03 +01:00
Daniel Brauner a9fd12e565 Fixed 0 workaround 2022-01-23 17:08:32 +01:00
Daniel Brauner d74860ec49 Add support for nested query variables 2022-01-18 22:21:54 +01:00
Simon Binder 19bd92bfd9
Remove redundant imports 2021-12-09 14:10:51 +01:00
westito fad654a5aa
PostgreSQL support (#1507)
Support PostgreSQL as a dialect in the main package and with an implementation provided in another package.

Co-authored-by: Simon Binder <oss@simonbinder.eu>
2021-11-11 14:40:41 +01:00
Simon Binder f2d0864890
Support generated columns in the parser 2021-11-07 22:10:08 +01:00
Simon Binder 07cba75ea8
Parse transaction blocks 2021-09-09 18:05:03 +02:00
Simon Binder 16bc11540b
Introduce single visitor method for moor-specific nodes 2021-09-08 23:20:45 +02:00
Simon Binder 3be320d0c5
Parse BEGIN and COMMIT statements 2021-09-08 22:53:57 +02:00
Simon Binder 074b663b79
Parse "STRICT" table definitions 2021-08-28 16:32:00 +02:00
Simon Binder aa75cbaa19
Prepare parser for schema support 2021-07-22 21:32:53 +02:00
Simon Binder c12de0b8a9
Fix nullability analysis of references 2021-07-07 21:25:57 +02:00
Simon Binder e1d633526b
Refactor custom table information in sqlparser 2021-05-25 18:46:10 +02:00
Simon Binder 258512e044
Support dart placeholders for inserts 2021-05-06 22:35:57 +02:00
Simon Binder 1de5479d60
Add explicit aliases with new codegen 2021-05-04 21:00:28 +02:00
Simon Binder 17f43bc9fc
Parse RAISE expressions (#1154) 2021-04-21 20:29:50 +02:00
Simon Binder 602212f99d
Support REQUIRED annotation for query vars 2021-04-13 22:14:12 +02:00
Simon Binder eb39738460
Initial support for RETURNING in the generator 2021-03-30 23:24:28 +02:00
Simon Binder 5ce5a48cff
Prefer a space after a closing ) in functions 2021-03-23 19:31:55 +01:00
Simon Binder 7c911713de
Two more analysis errors around RETURNING 2021-03-13 22:25:39 +01:00
Simon Binder b9b7f407c9
Parse RETURNING clauses 2021-03-13 20:41:14 +01:00
Simon Binder 687263dd66
Analysis support for generalized upserts 2021-03-13 16:07:12 +01:00
Simon Binder c9f8af346d
Parse more than ON CONFLICT clause 2021-03-13 15:21:27 +01:00
Simon Binder b110773053
Support MATERIALIZED / NOT MATERIALIZED 2021-03-13 14:00:06 +01:00
Simon Binder 3000cb2e44
Parse FROM clauses for update statements 2021-03-13 12:02:35 +01:00
Hossein Yousefi c0fc691a94 view analyzer class added 2021-02-11 18:38:41 +01:00
Simon Binder 76e6d2d219
Fix whitespace handling in new SQL generator 2021-01-24 12:27:53 +01:00
Simon Binder 4ba12c4868
Strip whitespace and comments from generated queries 2021-01-23 21:03:03 +01:00
Simon Binder 5ff74c7bcb
Improve table analysis, parse key ordering (#1007) 2021-01-18 14:44:05 +01:00
Simon Binder 9025280a89
Migrate sqlparser to null safety 2020-12-11 10:53:17 +01:00
Simon Binder 2ae2388878
Support default values for Dart placeholders (#753) 2020-08-30 13:48:47 +02:00
Simon Binder 57efa4bb89
Add more tests for node to text 2020-08-22 12:36:36 +02:00
Simon Binder 6fba2555c1
Api to turn AST nodes into a textual represenation 2020-08-21 16:44:17 +02:00
Simon Binder c342b29b33
Fix sqlparser crashes related to unknown tables 2020-06-19 13:43:16 +02:00
Simon Binder 1e8a1de6c0
sqlparser: Add visit methods for Queryable subclasses 2020-06-16 14:25:31 +02:00
Simon Binder 01e5a47189
Make utility visitor methods an extension 2020-05-24 19:53:36 +02:00
Simon Binder e772ca0225
Support views in ReferencedTablesVisitor 2020-05-23 15:27:58 +02:00