You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by remorses April 1, 2025
I want to use the Supabase database directly instead of a local database, to do that you could add support for a config option dbCommand to get the database uri via stdout
{
"$schema": "./docs/schemas/latest/schema.json",
// get the database uri using dotenv-cli npm package"dbCommand": "dotenv -- bash -c 'echo $DATABASE_URL'",
// get database uri using doppler"dbCommand": "doppler secrets get --plain DATABASE_URL",
}
This allows to get the database url using tools like Doppler or dotenv
The text was updated successfully, but these errors were encountered:
I would also love the ability to use InitializeParams and/or the workspace/didChangeConfiguration notification to configure this stuff, rather than be limited to a configuration file. The latter could enable switching database connections. Both options would then allow the client to determine the db parameters however they wanted, e.g. something along the lines of (in Neovim with lspconfig);
-- You could map this in on_attach, for example. Or use Telescope. Or whatever.functionswitch_database_connection(client--[[@type vim.lsp.Client]])
client.notify(
"workspace/didChangeConfiguration",
{
settings= { ...asabove... }
}
)
end
Discussed in #292
Originally posted by remorses April 1, 2025
I want to use the Supabase database directly instead of a local database, to do that you could add support for a config option
dbCommand
to get the database uri via stdoutThis allows to get the database url using tools like Doppler or dotenv
The text was updated successfully, but these errors were encountered: