Read-only DB

/.module.json (1.5 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
{
"name": "Read-only DB",
"icon": "database",
"description": "Adds a read-only database connection",
"authorName": "Kyle U",
"authorEmail": "kyle@kyleu.com",
"license": "CC0",
"sourcecode": "https://github.com/kyleu/projectforge/tree/master/module/readonlydb",
"configVars": [
{
"key": "read_db_host",
"type": "string",
"description": "hostname for the read-only PostgreSQL connection, defaults to `localhost`"
},
{
"key": "read_db_port",
"type": "int",
"description": "port for the read-only PostgreSQL connection, defaults to `3306`"
},
{
"key": "read_db_user",
"type": "string",
"description": "user for the read-only PostgreSQL connection"
},
{
"key": "read_db_password",
"type": "string",
"description": "password for the read-only PostgreSQL connection"
},
{
"key": "read_db_database",
"type": "string",
"description": "database for the read-only PostgreSQL connection"
},
{
"key": "read_db_schema",
"type": "string",
"description": "schema for the read-only PostgreSQL connection"
},
{
"key": "read_max_connections",
"type": "int",
"description": "max connection count for the read-only PostgreSQL connection"
},
{
"key": "read_db_debug",
"type": "bool",
"description": "when set, logs all database interactions for the read-only database"
}
],
"requires": ["database"]
}