Closed gedw99 closed 1 year ago
more info
dbnet conns list
+-----------+-------------+--------------+
| CONN NAME | CONN TYPE | SOURCE |
+-----------+-------------+--------------+
| SQLITE | DB - SQLite | env variable |
+-----------+-------------+--------------+
dbnet conns test SQLITE
fatal:
~
~ could not test SQLITE
~ could not connect to SQLITE
~ could not connect to database
invalid uri authority: Users
Hi, just seeing this.
sqlite:////Users/apple/workspace/go/src/github.com/gedw99/x-platform/data/flarco/.data/sqlite/test.db
appears to have an extra slash. sqlite:////
should be sqlite:///
can you try sqlite:///Users/apple/workspace/go/src/github.com/gedw99/x-platform/data/flarco/.data/sqlite/test.db
?
Thanks . Dumb mistake on my part :)
works
dbnet conns list
+-----------+-------------+--------------+
| CONN NAME | CONN TYPE | SOURCE |
+-----------+-------------+--------------+
| SQLITE | DB - SQLite | env variable |
+-----------+-------------+--------------+
dbnet serve
2023-07-10 15:53:36 INF Serving @ http://0.0.0.0:5987
I installed using brew install dbnet-io/dbnet/dbnet
/usr/bin/sqlite3 is insalled via brew also.
I have a sqlite db setup with a single table with data and exposed as ENV:
The web gui flashes: