postgresql-dart icon indicating copy to clipboard operation
postgresql-dart copied to clipboard

Possibility to connect using unix domain sockets

Open radzish opened this issue 6 years ago • 6 comments

Is it supported?

radzish avatar Oct 20 '19 18:10 radzish

Seems as if there is now SDK support for unix sockets. https://github.com/dart-lang/sdk/commit/ed83a28d3ee46437dcd624300ec6c003093a6659

grillbiff avatar Apr 08 '20 12:04 grillbiff

Created a fork here which implements Unix sockets for anyone that is interested in trying it out in dart dev before it is released https://github.com/grillbiff/postgresql-dart

Requires https://github.com/dart-lang/sdk/releases/tag/2.8.0-dev.17.0 or higher.

grillbiff avatar Apr 09 '20 08:04 grillbiff

@grillbiff: fantastic! It would be nice to merge this after 2.8.0 stable is released.

isoos avatar Apr 11 '20 07:04 isoos

Any chance this support for Unix sockets could get merged in? I'm personally using an ugly hack to use Cloud Postgresql on Cloud Run and it would be awesome to drop that now that 2.8 has landed. Thank you for considering it!

kirklink avatar May 22 '20 11:05 kirklink

@grillbiff: Can you update your fork to use the stable SDK references for minimum SDK version and create a PR from it?

isoos avatar May 22 '20 11:05 isoos

@isoos ok, I've updated it but to be honest, I'm a bit of a beginner with Dart so please check it carefully :)

grillbiff avatar May 31 '20 20:05 grillbiff