Commit 0dc2c81
authored
feat: More SQL Syntax Support for SQLite (#1687)
* add test helper for SQLite
* [sqlite] support simple insert and select where clause
* [sqlite] Improve simple select syntax support
* Add support `where` and `join` clause
* Add support table alias
* [sqlite] add support simple update statement
* add booktest example for SQLite
* [sqlite] support add column with NOT NULL constraint
* add ondeck example for SQLite
* regenerate example by sqlc 1.14
* [sqlite] add endtoend test for alias
* [sqlite] support coalesce function
* [sqlite] support 'bool' type
* [sqlite] support create/drop view
* add endtoend test for SQLite
* column_as
* comment_syntax
* comparisons
* create_view
* [sqlite] update datatype mapping
* [sqlite] support insert_select
* add endtoend test for SQLite
* identical_tables
* inflection
* insert_select
* insert_select_invalid
* insert_values
* [sqlite] better select statement support
* support `GROUP BY` and `HAVING`
* support `ORDER BY`
* support wildcard(`*`) column with table name
* add endtoend test for SQLite
* invalid_group_by_reference
* invalid_table_alias
* join_alias
* join_from
* join_left
* join_left_same_table
* join_table_name
* join_two_tables
* join_where_clause
* [sqlite] support LIMIT and OFFSET
* add endtoend test for SQLite
* limit
* limit_offset
* add endtoend test for SQLite
* select_limit
* limit_offset
* single_param_conflict
* update_set
* update_set_multiple
* [sqlite] support nested SELECT1 parent dff26be commit 0dc2c81
175 files changed
Lines changed: 5868 additions & 188 deletions
File tree
- examples
- authors
- sqlite
- booktest
- sqlite
- ondeck
- sqlite
- query
- schema
- internal
- codegen/golang
- endtoend/testdata
- alias/sqlite
- go
- coalesce_as/sqlite
- go
- coalesce/sqlite
- go
- column_as/sqlite
- go
- comment_syntax/sqlite
- go
- comparisons/sqlite
- go
- create_view/sqlite
- go
- data_type_boolean/sqlite
- db
- datatype/sqlite
- go
- sql
- ddl_create_trigger/sqlite/go
- identical_tables/sqlite
- go
- inflection/sqlite
- go
- insert_select_invalid/sqlite
- insert_select/sqlite
- go
- insert_values/sqlite
- go
- invalid_group_by_reference/sqlite
- invalid_table_alias/sqlite
- join_alias/sqlite
- go
- join_from/sqlite
- go
- join_left_same_table/sqlite
- go
- join_left/sqlite
- go
- join_table_name/sqlite
- go
- join_two_tables/sqlite
- go
- join_where_clause/sqlite
- go
- limit/sqlite
- go
- select_limit/sqlite
- go
- select_nested_count/sqlite
- go
- single_param_conflict/sqlite
- go
- update_set_multiple/sqlite
- go
- update_set/sqlite
- go
- engine/sqlite
- sqltest
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
25 | 36 | | |
26 | 37 | | |
27 | | - | |
| 38 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
17 | 24 | | |
18 | 25 | | |
19 | | - | |
| 26 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments