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
  • Loading branch information
siddiquipro authored Dec 18, 2024
1 parent ca67d8d commit 93cf6e8
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 93cf6e8

Please sign in to comment.