Skip to content

Commit

Permalink
add config type for mysql factory
Browse files Browse the repository at this point in the history
  • Loading branch information
Idokah committed Jan 31, 2024
1 parent 0774347 commit c52ca85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/external-db-mysql/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export * as testResources from '../tests/e2e-testkit/mysql_resources'
import { MySqlConfigValidator } from './mysql_config_validator'
import { DatabaseFactoryResponse, DbConnector } from '@wix-velo/velo-external-db-commons'
import init from './connection_provider'
import { MySqlConfig } from './types'

export const driver = () => require('../tests/drivers/sql_filter_transformer_test_support')
export const opsDriver = () => require('../tests/drivers/db_operations_test_support')
Expand All @@ -21,7 +22,7 @@ export class MySqlConnector extends DbConnector {
}
}

export const mySqlFactory = async(config: any, options: any): Promise<DatabaseFactoryResponse> => {
export const mySqlFactory = async(config: MySqlConfig, options: any): Promise<DatabaseFactoryResponse> => {
const connector = new MySqlConnector()
const { connection, cleanup, ...providers } = await connector.initialize(config, options)
return { connector, connection, providers, cleanup }
Expand Down

0 comments on commit c52ca85

Please sign in to comment.