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:
melohagan 2023-04-12 13:51:40 +01:00 committed by GitHub
parent 3b9887c66c
commit 3a5e31710c
1 changed files with 8 additions and 0 deletions

View File

@ -6,6 +6,7 @@ interface RedisConfig {
port: number port: number
username: string username: string
password?: string password?: string
db?: number
} }
const SCHEMA: Integration = { const SCHEMA: Integration = {
@ -32,6 +33,12 @@ const SCHEMA: Integration = {
type: "password", type: "password",
required: false, required: false,
}, },
db: {
type: "number",
required: false,
display: "DB",
default: 0,
},
}, },
query: { query: {
create: { create: {
@ -88,6 +95,7 @@ class RedisIntegration {
port: this.config.port, port: this.config.port,
username: this.config.username, username: this.config.username,
password: this.config.password, password: this.config.password,
db: this.config.db,
}) })
} }