SQL query in JSON format
When is this useful?
If you want to store SQL queries in JSON format
Examples
varqueryString = queryString// returns create table `person` (`id` bigint primary key auto_increment, `name` text)queryString// returns drop table `person`queryString// returns truncate table `person`queryString// returns rename table `person` to `nosrep`queryString// returns alter table `person` drop `name`queryString// returns insert `person` select * from `nosrep`queryString// returns insert `person` set `id` = 1, `name` = 'Bob'queryString// returns insert `person` set `name` = 'Bob' on duplicate key update `name` = 'Alice'queryString// returns update `person` set `name` = 'Alice' where `id` = 1queryString// returns update `person` set `name` = 'Alice' where `name` = 'Bob'queryString// returns delete from `person` where `id` = 1queryString// returns delete from `person` where `name` = 'Alice'