Skip to content

Commit 2df656a

Browse files
authored
feat: add Configuration settings (#75)
1 parent 3c0eda6 commit 2df656a

File tree

1 file changed

+36
-10
lines changed

1 file changed

+36
-10
lines changed

gemini-extension.json

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,41 @@
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"
23-
}
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",
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+
"sensitive": true
42+
},
43+
{
44+
"name": "Query Params",
45+
"description": "(Optional) Connection String Parameters",
46+
"envVar": "POSTGRES_QUERY_PARAMS"
47+
}
48+
]
49+
}

0 commit comments

Comments
 (0)