-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to export without quotes #1896
Comments
Shouldn't be too hard to make happen. What's the scenario where it'd be useful? 😄 |
I’d like to discourage any effort
Suppose someone has or makes a schema with keywords as table and/or column
names so SQL statements like
Select [select] from [from] where [where] is null;
are valid. In sqlite [<identifier>] is an alternative for double quotes.
|
The difficult part is that in order to do it well, you have to check that the identifier doesn't have any unusual character or it isn't an SQL keyword, otherwise the result will be invalid. Note that you can choose the quote character to use in "Edit > Preferences > SQL", just in case you prefer other style over the default SQL standard. Edit: Just saw @Z4us' similar answer. |
Good point. Sounds like it could turn out to be tricky to implement well. 😦 |
It would be useful for who wants less verbose SQL, specially people using screen reader. Many other tools (SQLite Studio, DBeaver etc.) allows it, so IMHO SQLite Browser should allow it too. I found the Below, the same table exported trough SQLite Studio, notice the lot of useless spaces, but no quotes: CREATE TABLE companies (
id INTEGER PRIMARY KEY
NOT NULL,
name VARCHAR (50) UNIQUE
NOT NULL
CHECK (LENGTH(name) > 2),
address_id INTEGER REFERENCES addresses (id) ON DELETE CASCADE
ON UPDATE CASCADE
NOT NULL
); |
On the contrary, my fields intentionally carry |
Couldn't you use a character you wouldn't use, eg, £ as the quote character, then a search/replace would remove all those £ characters... |
Hello.
It would be nice to export metadata without quotes (menu
File | Export | Database to SQL file...
). For example, currently it export as:however, it would be nice any option to export as:
Thank you!
The text was updated successfully, but these errors were encountered: