ds_types.anubis
2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
* Created by PyramIDE.
* User: フランスのトトロ aka (David RENÉ)
* Date: 07/02/2017
* Time: 23:05
* © Calexium
*/
read densaku_lib/types/densaku.anubis
public define List(DS_Type) calexium_lib_types_description =
[
// public type DB_id:
// none,
// db_id(Int value).
ds_type("DB_id", [
enum("none", comment("no database Primary Key ID")),
alternative("db_id", [
component( int, "value", comment("Integer value of the Primary Key ID"))
])
]),
// public type DB_datetime:
// db_datetime(String datetime). //Date and time in ISO8601 format "YYYY-MM-DD hh:mm:ss"
ds_type("DB_datetime", [
alternative("db_datetime", [
component(string, "datetime", comment("Date and time in ISO8601 format \"YYYY-MM-DD hh:mm:ss\""))
])
]),
// public type DB_date:
// db_date(String date). //Date in ISO8601 format "YYYY-MM-DD"
ds_type("DB_date", [
alternative("db_date", [
component(string, "date", comment("Date and time in ISO8601 format \"YYYY-MM-DD\""))
])
]),
// public type DB_time:
// db_time(String time). //Time in ISO8601 format "hh:mm:ss"
ds_type("DB_time", [
alternative("db_time", [
component(string, "time", comment("Date and time in ISO8601 format \"hh:mm:ss\""))
])
]),
// public type DB_integer:
// db_integer(Int value).
// calexium_lib/database/db_types.anubis
ds_type("DB_integer", [
alternative("db_integer", [
component(int, "value", comment("Integer from datatase"))
])
]),
// public type MIME:
// mime(String type,
// String sybtype,
// List(String) file_extensions).
// library/web/mime.anubis
ds_type("MIME", [
alternative("mime", [
component(string, "type"),
component(string, "subtype"),
component(list, string, "file_extensions")
])
]),
ds_type("WEB_Action_Name", [
alternative("controller_action", [
component(string, "controller"),
component(string, "action_name")
]),
alternative("action_name", [
component(string, "action_name")
]),
//url is raw action, hence we will only copy that url in final link
alternative("url", comment("url is raw action, hence we will only copy that url in final link"), [
component(string, "url_name", )
])
])
]
.