project-error / npwd

NPWD is a FiveM phone resource written entirely in TypeScript and React.
https://projecterror.dev
Other
351 stars 275 forks source link

fix(packages/db): type safe & parse uri options #1086

Closed lukealford closed 11 months ago

lukealford commented 11 months ago

Pull Request Description

Note, that this supports the following connection string types

set mysql_connection_string "mysql://root:12345@localhost:3306/npwd"
set mysql_connection_string "mysql://localhost:3306/npwd?user=12345&password=12345"
set mysql_connection_string "user=root;password=12345;host=localhost;port=3306;database=npwd"

Pull Request Checklist: