Skip to content

Commit 9e4eb31

Browse files
committed
Add DebugLog schema
1 parent f1364f0 commit 9e4eb31

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

dbschema/debug.gel

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module default {
2+
type DebugLog {
3+
message: str;
4+
created_at: datetime;
5+
multi data: json;
6+
};
7+
8+
function log_it(message: str, data: optional json) -> optional DebugLog
9+
using (
10+
insert default::DebugLog {
11+
message := message,
12+
created_at := datetime_of_statement(),
13+
data := data
14+
}
15+
)
16+
}

0 commit comments

Comments
 (0)