Skip to content

Commit 7453dfa

Browse files
committed
feat: add Configuration settings
1 parent 9dc8f21 commit 7453dfa

1 file changed

Lines changed: 34 additions & 9 deletions

File tree

gemini-extension.json

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,40 @@
99
"--prebuilt",
1010
"postgres",
1111
"--stdio"
12-
],
13-
"env": {
14-
"POSTGRES_HOST": "${POSTGRES_HOST}",
15-
"POSTGRES_PORT": "${POSTGRES_PORT}",
16-
"POSTGRES_DATABASE": "${POSTGRES_DATABASE}",
17-
"POSTGRES_USER": "${POSTGRES_USER}",
18-
"POSTGRES_PASSWORD": "${POSTGRES_PASSWORD}"
19-
}
12+
]
2013
}
2114
},
22-
"contextFileName": "POSTGRESQL.md"
15+
"contextFileName": "POSTGRESQL.md",
16+
"settings": [
17+
{
18+
"name": "Host",
19+
"description": "Host or IP address of the PostgreSQL server",
20+
"envVar": "POSTGRES_HOST"
21+
},
22+
{
23+
"name": "Port",
24+
"description": "Port number of the PostgreSQL server",
25+
"envVar": "POSTGRES_PORT"
26+
},
27+
{
28+
"name": "Database Name",
29+
"description": "Name of the database",
30+
"envVar": "POSTGRES_DATABASE"
31+
},
32+
{
33+
"name": "User",
34+
"description": "Username of the database user",
35+
"envVar": "POSTGRES_USER"
36+
},
37+
{
38+
"name": "Password",
39+
"description": "Password of the database user",
40+
"envVar": "POSTGRES_PASSWORD"
41+
},
42+
{
43+
"name": "Query Params",
44+
"description": "(Optional) Raw query to be added to the db connection string",
45+
"envVar": "POSTGRES_QUERY_PARAMS"
46+
}
47+
]
2348
}

0 commit comments

Comments
 (0)