Skip to content

Commit

Permalink
added decimalNumbers config to connection properties for compatibilit…
Browse files Browse the repository at this point in the history
…y to mysql (#1080)
  • Loading branch information
siddiquipro authored Dec 18, 2024
1 parent fbfadbe commit ac8ee6c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/types/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,18 @@ type MysqlConnectionNode = {
flags?: string
ssl?: any
}

/**
* mysql2 options for compatibility to mysql
*/
type Mysql2AdditionalOptions = {
decimalNumbers?: boolean
}

export type MysqlConfig = SharedConfigNode & {
client: 'mysql' | 'mysql2'
version?: string
connection?: SharedConnectionNode & MysqlConnectionNode
connection?: SharedConnectionNode & MysqlConnectionNode & Mysql2AdditionalOptions
replicas?: {
write: {
connection: MysqlConfig['connection']
Expand Down

0 comments on commit ac8ee6c

Please sign in to comment.