nushell/crates/nu-command/src/database/commands
BlacAmDK 86faf753bd
Fix SQLite table creation sql (#8430)
# Description

The "CREATE TABLE" statement in `into sqlite` does not add quotes to the
column names, reproduction steps are below:

```
/home/xxx〉[[name,y/n];[a,y]] | into sqlite test.db
Error: 
  × Failed to prepare SQLite statement
   ╭─[entry #1:1:1]
 1 │ [[name,y/n];[a,y]] | into sqlite test.db
   ·                                                       ───┬───
   ·                                                             ╰── near "/": syntax error in CREATE TABLE IF NOT EXISTS main (name TEXT,y/n TEXT) at offset 44
   ╰────
```

# User-Facing Changes

None

---------

Co-authored-by: Reilly Wood <reilly.wood@icloud.com>
2023-03-13 10:11:28 -07:00
..
into_sqlite.rs Fix SQLite table creation sql (#8430) 2023-03-13 10:11:28 -07:00
mod.rs Remove sqlparser SQLite commands (#7040) 2022-11-10 11:14:48 +13:00
query_db.rs Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
schema.rs Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00