-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
803 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# DESCRIBE SYSTEM CONFIG | ||
CONFIGURE INSTANCE SET session_idle_transaction_timeout := <std::duration>'PT10S'; | ||
|
||
# DESCRIBE ROLES | ||
ALTER ROLE edgedb { SET password_hash := 'SCRAM-SHA-256$4096:uW/qwJYN670oH0drUrqR+g==$75aALunV2+1FahpEUh74VDSTys4mauysRRd/uafN7gE=:kCGhj9XQIWjla4CjzWPscgoyuyMOwD0RLHJSkXowhU0=';}; |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# DESCRIBE SYSTEM CONFIG | ||
CONFIGURE INSTANCE SET session_idle_transaction_timeout := <std::duration>'PT10S'; | ||
|
||
# DESCRIBE ROLES | ||
ALTER ROLE edgedb { SET password_hash := 'SCRAM-SHA-256$4096:uW/qwJYN670oH0drUrqR+g==$75aALunV2+1FahpEUh74VDSTys4mauysRRd/uafN7gE=:kCGhj9XQIWjla4CjzWPscgoyuyMOwD0RLHJSkXowhU0=';}; |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# DESCRIBE SYSTEM CONFIG | ||
CONFIGURE INSTANCE SET session_idle_transaction_timeout := <std::duration>'PT10S'; | ||
|
||
# DESCRIBE ROLES | ||
ALTER ROLE edgedb { SET password_hash := 'SCRAM-SHA-256$4096:uW/qwJYN670oH0drUrqR+g==$75aALunV2+1FahpEUh74VDSTys4mauysRRd/uafN7gE=:kCGhj9XQIWjla4CjzWPscgoyuyMOwD0RLHJSkXowhU0=';}; |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[edgedb] | ||
server-version = "4.5" | ||
server-version = "5.4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
proj_info/migrations/00002.edgeql → proj_info/migrations/00002-m1d4u43.edgeql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
proj_info/migrations/00003.edgeql → proj_info/migrations/00003-m1iolrl.edgeql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
proj_info/migrations/00004.edgeql → proj_info/migrations/00004-m1dccfq.edgeql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
proj_info/migrations/00005.edgeql → proj_info/migrations/00005-m1fn7t6.edgeql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
proj_info/migrations/00006.edgeql → proj_info/migrations/00006-m1aied2.edgeql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
proj_info/migrations/00007.edgeql → proj_info/migrations/00007-m1d2wep.edgeql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
proj_info/migrations/00008.edgeql → proj_info/migrations/00008-m1en23a.edgeql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
proj_info/migrations/00009.edgeql → proj_info/migrations/00009-m1dem5e.edgeql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
proj_info/migrations/00010.edgeql → proj_info/migrations/00010-m1ngyzn.edgeql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
proj_info/migrations/00011.edgeql → proj_info/migrations/00011-m1lp75t.edgeql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CREATE MIGRATION m1f62bczhdawkow3bphndbuie3gdl2htatf5mxatxw54hqjoy5laaa | ||
ONTO m1lp75tn62kfa4dbkkkv2u4pr3t2jjeyrix7cntwllnjid2mmu23qq | ||
{ | ||
CREATE EXTENSION pg_trgm VERSION '1.6'; | ||
}; |
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
proj_info/migrations/00013.edgeql → proj_info/migrations/00013-m1yd24u.edgeql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
proj_info/migrations/00014.edgeql → proj_info/migrations/00014-m1ecf5p.edgeql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
insert FuzzyTime {fuzzy_year:= 1992}; | ||
|
||
insert Actor { | ||
name:= "曾志偉", | ||
eng_name:= "Eric", | ||
nickname:= "獎老", | ||
}; | ||
|
||
insert GangsterBoss { | ||
name:= "韓琛", | ||
nickname:= "琛哥", | ||
classic_lines:= ["一將功成萬骨枯"], | ||
actors := assert_single((select Actor filter .name = "曾志偉")), | ||
}; | ||
|
||
insert Actor { | ||
name:= "陳冠希", | ||
eng_name:= "Edison", | ||
}; | ||
|
||
insert GangsterSpy { | ||
name:= "劉建明", | ||
nickname:= "劉仔", | ||
gangster_boss:= assert_single((select GangsterBoss filter .name = "韓琛")), | ||
dept:= "警校學生", | ||
actors := assert_single((select Actor filter .name in {"陳冠希"})), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
select test_alias(); | ||
|
||
insert Scene { | ||
title:= "韓琛初現", | ||
detail:= "韓琛準備派遣多個身家較為清白的小弟臥底至香港警隊,包括建明。" ++ | ||
"他向小弟們講述著自己的過去,並說自己不相信算命先生所說的" ++ | ||
"「一將功成萬骨枯」。他認為出來混的,未來的路怎麼走應該由自己決定。", | ||
remarks:= "1.假設此場景為1992年。", | ||
who:= {hon, lau}, | ||
`when`:= year_1992, | ||
where:= (insert Location {name:= "佛堂"}) , | ||
references:= [("維基百科-無間道", "https://zh.wikipedia.org/zh-tw/%E7%84%A1%E9%96%93%E9%81%93"), | ||
("香港警察職級", "https://zh.wikipedia.org/zh-tw/%E9%A6%99%E6%B8%AF%E8%AD%A6%E5%AF%9F%E8%81%B7%E7%B4%9A")] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
insert PoliceSpy { | ||
name:="陳永仁", | ||
nickname:= "仁哥", | ||
gangster_boss:= hon, | ||
actors := (insert Actor { | ||
name:= "余文樂", | ||
eng_name:= "Shawn", | ||
nickname:= "六叔", | ||
}), | ||
}; | ||
|
||
insert Police { | ||
name:= "黃志誠", | ||
nickname:= "黃sir", | ||
police_rank:= PoliceRank.SIP, | ||
actors := (insert Actor { | ||
name:= "黃秋生", | ||
eng_name:= "Anthony", | ||
nickname:= "大飛哥", | ||
}), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
select test_alias(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
insert ChenLauContact { | ||
how:= "面對面", | ||
detail:= "永仁假裝鬧事被趕出警校時,與建明在門口有一面之緣。", | ||
`when`:= year_1992, | ||
where:= (insert Landmark {name:= "警校"}), | ||
}; | ||
|
||
insert Scene { | ||
title:= "我想跟他換", | ||
detail:= "葉校長與黃sir準備於警校新生中,挑選適合的新人臥底至黑社會。" ++ | ||
"永仁天資優異,觀察入微,為臥底的不二人選。兩人指示永仁假裝鬧" ++ | ||
"事並趁機將其趕出警校,而建明此時剛好入學,看著永仁背影喃喃自" ++ | ||
"語道:「我想跟他換」。或許建明從一開始就真的想做個好人?", | ||
remarks:= "1.假設黃Sir於1992年官階為`SIP`。", | ||
who:= {wong, chen, lau}, | ||
`when`:= year_1992, | ||
where:= (select Landmark filter .name="警校"), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
insert FuzzyTime {fuzzy_year:= 1994}; | ||
|
||
insert Landmark {name:= "警察局"}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
select test_alias(); | ||
|
||
update lau set { | ||
police_rank:= PoliceRank.PC | ||
}; | ||
|
||
insert ChenLauContact { | ||
how:= "面對面", | ||
detail:= "建明逮捕永仁並在警局替其做筆錄。", | ||
`when`:= year_1994, | ||
where:= police_station, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
with records:= {("CCR9314768", "OFFNCE: A.O.A.B.H "), ("RN992317", "CD-POD ")}, | ||
for record in records | ||
union (insert CriminalRecord { | ||
ref_no:= record.0, | ||
code:= record.1, | ||
involved:= chen, | ||
}); | ||
|
||
|
||
|
||
select CriminalRecord {**}; | ||
|
||
for record in CriminalRecord | ||
union ( | ||
update record | ||
set { | ||
code:= str_trim_end(.code) | ||
} | ||
); | ||
|
||
select CriminalRecord {**}; | ||
|
||
select chen {criminal_records:= .<involved[is CriminalRecord] {**}}; | ||
|
||
select Character {name, criminal_records:= .<involved[is CriminalRecord] {**}}; | ||
|
||
insert Scene { | ||
title:= "黑白顛倒", | ||
detail:= "永仁留下多次案底,並曾經被建明逮捕,但也逐漸取得黑社會的信任。" ++ | ||
"建明畢業後則由警員(PC)做起,表現優異,獲面試晉陞見習督察(PI)" ++ | ||
"的機會。兩人的路就像黑白顛倒一般,誰是好人,誰又是壞人呢?", | ||
remarks:= "1.假設此時為1994年。", | ||
who:= {chen, lau}, | ||
`when`:= year_1994, | ||
where:= police_station, | ||
}; |
Oops, something went wrong.