feat(sql): support IF EXIST and IF NOT EXISTS options
Note that after this merge request, we no longer validate whether the format of the created object matches with the schema. Consequently, we do not suppress errors if formats match anymore. Before: ```sql CREATE USER u WITH PASSWORD 'Passw0rd' 1 CREATE USER u WITH PASSWORD 'Passw0rd' 0 CREATE USER u WITH PASSWORD 'DifferentPassw0rd' error: user already exists with different auth method ``` Now: ```sql CREATE USER u WITH PASSWORD 'Passw0rd' 1 CREATE USER u WITH PASSWORD 'Passw0rd' error: user u already exists CREATE USER u WITH PASSWORD 'DifferentPassw0rd' error: user u already exists CREATE USER IF NOT EXISTS u WITH PASSWORD 'DifferentPassw0rd' 0 ```
Showing
- CHANGELOG.md 2 additions, 0 deletionsCHANGELOG.md
- sbroad 1 addition, 1 deletionsbroad
- src/schema.rs 0 additions, 67 deletionssrc/schema.rs
- src/sql.rs 86 additions, 42 deletionssrc/sql.rs
- test/int/test_cli_ux.py 3 additions, 3 deletionstest/int/test_cli_ux.py
- test/int/test_sql.py 97 additions, 19 deletionstest/int/test_sql.py
Loading
Please register or sign in to comment