Skip to content

Commit

Permalink
Update 5.database.md
Browse files Browse the repository at this point in the history
this url params was not working for me. Then I went and looked at this file: https://github.com/nitrojs/nitro/blob/v2/src/runtime/internal/database.ts#L3

It seems each connector is waiting for an option object. Maybe the confusion comes from the fact that postgresql accept options to be a string as well.
  • Loading branch information
UngererFabien authored Feb 13, 2025
1 parent 722d586 commit 76a7ac0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/1.guide/5.database.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ export default defineNuxtConfig({
},
users: {
connector: 'postgresql',
url: 'postgresql://username:password@hostname:port/database_name'
options: {
url: 'postgresql://username:password@hostname:port/database_name'
}
}
}
}
Expand Down

0 comments on commit 76a7ac0

Please sign in to comment.