From db24b3d9e34618ba6be966efa90308c7a7837284 Mon Sep 17 00:00:00 2001 From: jinxm <37177191+systemctls@users.noreply.github.com> Date: Mon, 18 Jul 2022 23:34:19 +0800 Subject: [PATCH] =?UTF-8?q?upd:=20=E5=B8=B8=E7=94=A8=20SQL=20=E8=AF=AD?= =?UTF-8?q?=E5=8F=A5=20(#237)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: jinxm Co-authored-by: KaiyiWing --- ...4000_Essential_English_Words-meaning.json} | 0 ...000_Essential_English_Words-sentence.json} | 0 public/dicts/SQL_statement_lower-case.json | 74 +++++++++++++++++++ public/dicts/SQL_statement_upper-case.json | 74 +++++++++++++++++++ src/resources/dictionary.ts | 26 +++++-- 5 files changed, 169 insertions(+), 5 deletions(-) rename public/dicts/{4000 Essential English Words-meaning.json => 4000_Essential_English_Words-meaning.json} (100%) rename public/dicts/{4000 Essential English Words-sentence.json => 4000_Essential_English_Words-sentence.json} (100%) create mode 100644 public/dicts/SQL_statement_lower-case.json create mode 100644 public/dicts/SQL_statement_upper-case.json diff --git a/public/dicts/4000 Essential English Words-meaning.json b/public/dicts/4000_Essential_English_Words-meaning.json similarity index 100% rename from public/dicts/4000 Essential English Words-meaning.json rename to public/dicts/4000_Essential_English_Words-meaning.json diff --git a/public/dicts/4000 Essential English Words-sentence.json b/public/dicts/4000_Essential_English_Words-sentence.json similarity index 100% rename from public/dicts/4000 Essential English Words-sentence.json rename to public/dicts/4000_Essential_English_Words-sentence.json diff --git a/public/dicts/SQL_statement_lower-case.json b/public/dicts/SQL_statement_lower-case.json new file mode 100644 index 00000000..18b97228 --- /dev/null +++ b/public/dicts/SQL_statement_lower-case.json @@ -0,0 +1,74 @@ +[ + { + "name": "alter table", + "trans": [ + "alter table 用来更新现存表的模式。可以用 create table 来创建一个新表。" + ] + }, + { + "name": "commit", + "trans": [ + "commit 用来将事务写入数据库。" + ] + }, + { + "name": "create index", + "trans": [ + "create index 用来为一列或多列创建索引。" + ] + }, + { + "name": "create table", + "trans": [ + "create table 用来创建新的数据库表。可以用 alter table 来更新一个现存表的模式。" + ] + }, + { + "name": "create view", + "trans": [ + "create view 用来创建一个或多个表的视图。" + ] + }, + { + "name": "delete", + "trans": [ + "delete 用来从表中删除一行或多行。" + ] + }, + { + "name": "drop", + "trans": [ + "drop 用来永久性地删除数据库对象(表、视图和索引等)" + ] + }, + { + "name": "insert", + "trans": [ + "insert 用来对表添加一个新行。" + ] + }, + { + "name": "insert select", + "trans": [ + "insert select 用来将 select 的结果插入到表中。" + ] + }, + { + "name": "rollback", + "trans": [ + "rollback 用来撤销事务块。" + ] + }, + { + "name": "select", + "trans": [ + "select 用来从一个或多个表(或视图)中检索数据。" + ] + }, + { + "name": "update", + "trans": [ + "update 用来对表中的一行或多行进行更新。" + ] + } +] \ No newline at end of file diff --git a/public/dicts/SQL_statement_upper-case.json b/public/dicts/SQL_statement_upper-case.json new file mode 100644 index 00000000..1c9f1dac --- /dev/null +++ b/public/dicts/SQL_statement_upper-case.json @@ -0,0 +1,74 @@ +[ + { + "name": "ALTER TABLE", + "trans": [ + "ALTER TABLE 用来更新现存表的模式。可以用 CREATE TABLE 来创建一个新表。" + ] + }, + { + "name": "COMMIT", + "trans": [ + "COMMIT 用来将事务写入数据库。" + ] + }, + { + "name": "CREATE INDEX", + "trans": [ + "CREATE INDEX 用来为一列或多列创建索引。" + ] + }, + { + "name": "CREATE TABLE", + "trans": [ + "CREATE TABLE 用来创建新的数据库表。可以用 ALTER TABLE 来更新一个现存表的模式。" + ] + }, + { + "name": "CREATE VIEW", + "trans": [ + "CREATE VIEW 用来创建一个或多个表的视图。" + ] + }, + { + "name": "DELETE", + "trans": [ + "DELETE 用来从表中删除一行或多行。" + ] + }, + { + "name": "DROP", + "trans": [ + "DROP 用来永久性地删除数据库对象(表、视图和索引等)" + ] + }, + { + "name": "INSERT", + "trans": [ + "INSERT 用来对表添加一个新行。" + ] + }, + { + "name": "INSERT SELECT", + "trans": [ + "INSERT SELECT 用来将 SELECT 的结果插入到表中。" + ] + }, + { + "name": "ROLLBACK", + "trans": [ + "ROLLBACK 用来撤销事务块。" + ] + }, + { + "name": "SELECT", + "trans": [ + "SELECT 用来从一个或多个表(或视图)中检索数据。" + ] + }, + { + "name": "UPDATE", + "trans": [ + "UPDATE 用来对表中的一行或多行进行更新。" + ] + } +] \ No newline at end of file diff --git a/src/resources/dictionary.ts b/src/resources/dictionary.ts index 2735d3d0..c1e84af4 100644 --- a/src/resources/dictionary.ts +++ b/src/resources/dictionary.ts @@ -26,7 +26,7 @@ export const dictionaries: Dictionary[] = [ description: '高考常见词 3500', category: '英语学习', url: './dicts/GaoKao_3500.json', - length: 3876, + length: 3893, }, { id: 'sat', @@ -227,6 +227,22 @@ export const dictionaries: Dictionary[] = [ url: './dicts/csharp-list.json', length: 36, }, + { + id: 'sql-lower-case', + name: 'SQL: 常用语句 lower case', + description: 'SQL 常用语句 小写', + category: '代码练习', + url: './dicts/SQL_statement_lower-case.json', + length: 12, + }, + { + id: 'sql-upper-case', + name: 'SQL: 常用语句 upper case', + description: 'SQL 常用语句 大写', + category: '代码练习', + url: './dicts/SQL_statement_upper-case.json', + length: 12, + }, { id: 'san1', name: '三年级上', @@ -596,19 +612,19 @@ export const dictionaries: Dictionary[] = [ length: 2681, }, { - id: '4000 Essential English Words1', + id: '4000_Essential_English_Words1', name: 'Essential Words', description: '4000 Essential English Words meaning', category: 'en2en', - url: './dicts/4000 Essential English Words-meaning.json', + url: './dicts/4000_Essential_English_Words-meaning.json', length: 3600, }, { - id: '4000 Essential English Words2', + id: '4000_Essential_English_Words2', name: 'Essential Words', description: '4000 Essential English Words sentence', category: 'en2en', - url: './dicts/4000 Essential English Words-sentence.json', + url: './dicts/4000_Essential_English_Words-sentence.json', length: 3600, }, {