Skip to content

Commit

Permalink
feat: add db connection event types
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianNEMO authored Dec 18, 2024
1 parent ca67d8d commit 4862c7d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion providers/database_provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { Adapter } from '../src/orm/adapter/index.js'
import { QueryClient } from '../src/query_client/index.js'
import { BaseModel } from '../src/orm/base_model/index.js'
import { DatabaseTestUtils } from '../src/test_utils/database.js'
import type { DatabaseConfig, DbQueryEventNode } from '../src/types/database.js'
import type { ConnectionContract, DatabaseConfig, DbQueryEventNode } from '../src/types/database.js'
import { VineDbSearchCallback, VineDbSearchOptions } from '../src/types/vine.js'

/**
Expand All @@ -26,6 +26,9 @@ declare module '@adonisjs/core/types' {
}
export interface EventsList {
'db:query': DbQueryEventNode
'db:connection:connect': ConnectionContract
'db:connection:disconnect': ConnectionContract
'db:connection:error': [Error, ConnectionContract]
}
}

Expand Down

0 comments on commit 4862c7d

Please sign in to comment.