Open
Description
So I'm working on a Mac and have the local Postgres App running on my machine (https://postgresapp.com/).
And while it works fine with all my other environments (Ruby, Python, Purebasic, Xojo, Datagrip etc...) I cannot make a connection from Dart using your package!
If I use this style of connection:
@protected
Future<Connection> getConnection() async {
return await Connection.open(Endpoint(
host: dbInfo.host,
database: dbInfo.database,
username: dbInfo.user,
password: dbInfo.password,
));
}
I get the error message:
Unhandled exception:
Severity.error Server does not support SSL, but it was required.
And if I use this format, which I believe is wrong in any case:
Future<Connection> getConnection() async {
return await Connection.open(Endpoint(
host: dbInfo.host,
database: dbInfo.database,
username: dbInfo.user,
password: dbInfo.password,
isUnixSocket: true
));
}
I get this error, which is kinda what I'm expecting to happen:
Connection failed (OS Error: No such file or directory, errno = 2), address = localhost, port = 5432
So how can I turn off the SSL mode as is supported in other environments, something likeL
'postgres://username:password@localhost:5432/database?sslmode=false';
Or alternative how do you expect people to handle this use case?
Metadata
Metadata
Assignees
Labels
No labels