Database Close is not available

Is there a way to call manually Database.close in new Adonis5 ?

import Database from '@ioc:Adonis/Lucid/Database'
await Database.close() or simple Database.close() 

i was able to do this in 4.1

Database.close(['mysql']) <- from docs

Thanks in advance

1 Like

Nevermind i have found that is under the manager now

await Database.manager.close(‘pg’)

Thanks

2 Likes