Add db prop to redis integration (#10210)
* Add db prop to redis integration * Add DB display * Default DB value to 0
This commit is contained in:
parent
3b9887c66c
commit
3a5e31710c
|
@ -6,6 +6,7 @@ interface RedisConfig {
|
|||
port: number
|
||||
username: string
|
||||
password?: string
|
||||
db?: number
|
||||
}
|
||||
|
||||
const SCHEMA: Integration = {
|
||||
|
@ -32,6 +33,12 @@ const SCHEMA: Integration = {
|
|||
type: "password",
|
||||
required: false,
|
||||
},
|
||||
db: {
|
||||
type: "number",
|
||||
required: false,
|
||||
display: "DB",
|
||||
default: 0,
|
||||
},
|
||||
},
|
||||
query: {
|
||||
create: {
|
||||
|
@ -88,6 +95,7 @@ class RedisIntegration {
|
|||
port: this.config.port,
|
||||
username: this.config.username,
|
||||
password: this.config.password,
|
||||
db: this.config.db,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue