Browse Source

chore: lint

Signed-off-by: Pranav C <pranavxc@gmail.com>
feat/oracle-support
Pranav C 2 years ago
parent
commit
bd8f5dbe60
  1. 3
      packages/nc-gui/components/cell/TimePicker.vue
  2. 3
      packages/nc-gui/utils/projectCreateUtils.ts

3
packages/nc-gui/components/cell/TimePicker.vue

@ -25,7 +25,8 @@ const column = inject(ColumnInj)!
let isTimeInvalid = $ref(false)
const dateFormat = isMysql(column.value.base_id) || isOracle(column.value.base_id) ? 'YYYY-MM-DD HH:mm:ss' : 'YYYY-MM-DD HH:mm:ssZ'
const dateFormat =
isMysql(column.value.base_id) || isOracle(column.value.base_id) ? 'YYYY-MM-DD HH:mm:ss' : 'YYYY-MM-DD HH:mm:ssZ'
const localState = $computed({
get() {

3
packages/nc-gui/utils/projectCreateUtils.ts

@ -54,7 +54,8 @@ const testDataBaseNames = {
}
export const getTestDatabaseName = (db: { client: ClientType; connection?: { database?: string } }) => {
if (db.client === ClientType.PG || db.client === ClientType.SNOWFLAKE || db.client === ClientType.ORACLEDB) return db.connection?.database
if (db.client === ClientType.PG || db.client === ClientType.SNOWFLAKE || db.client === ClientType.ORACLEDB)
return db.connection?.database
return testDataBaseNames[db.client as keyof typeof testDataBaseNames]
}

Loading…
Cancel
Save