$ curl -H "Content-Type: application/json" --data '{}' -X POST http://localhost:8000/v1/namespaces/db1/create
$ curl -H "Content-Type: application/json" --data '{}' -X POST http://localhost:8000/v1/namespaces/db2/create
This works so far, I can connect to my namespaces with the turso CLI
$ turso db shell 'http://db1.localhost:8080
Connected to http://db1.localhost:8080
Welcome to Turso SQL shell!
Type ".quit" to exit the shell and ".help" to list all available commands.
...
Yet I do not manage to enable the attach permissions. The only documented way to do this I found was using the turso CLI:
turso db config attach <database name>, yet I don't get this to work:
$ turso db config attach allow 'http://db1.localhost:8080'
Error: database http://db1.localhost:8080 not found. List known databases using turso db list
And turso db list command won't do anything either since I am in a self-hosted environment. So can anyone clarify this? I am a bit lost.
turso db config attach allow works only with databases hosted on Turso platform. If you need help with using libsql locally please join our Discord server and ask for help there https://discord.gg/turso.
I am playing around with a local installation of sqld in a docker container and I wonder how I can enable the
attach
permissions for a database.Currently I am running
and setup a few namespaces
This works so far, I can connect to my namespaces with the turso CLI
Yet I do not manage to enable the attach permissions. The only documented way to do this I found was using the turso CLI:
turso db config attach <database name>
, yet I don't get this to work:And
turso db list
command won't do anything either since I am in a self-hosted environment. So can anyone clarify this? I am a bit lost.