vibe.db.postgresql: Example not working in Windows
Salih Dincer
salihdb at hotmail.com
Fri Apr 14 22:43:14 UTC 2023
On Friday, 14 April 2023 at 17:06:36 UTC, Vino wrote:
> I was just trying the new package vibe.db.postgresql and the
> example provided is not working, can some one provide me an
> working example.
>
> Step performed
> ```
> dub init
> dub add vibe-d-postgresql
> copy the example program to source/app.d
> dub run
> ```
I would like to draw your attention to this point:
```d
#!/usr/bin/env dub
/+ dub.sdl:
dependency "vibe-d" version="~>0.9.0"
+/
void main()
{
import vibe.d;
listenHTTP(":8080", (req, res) {
res.writeBody("Hello, World: " ~ req.path);
});
runApplication();
}
```
Do you have a working vibe app?
SDB at 79
More information about the Digitalmars-d-learn
mailing list