Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add support for running a command to get the database connection string inpostgrestools.jsonc#292

remorses started this conversation inIdeas
Discussion options

I want to use the Supabase database directly instead of a local database, to do that you could add support for a config optiondbCommand 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

You must be logged in to vote

Replies: 2 comments 3 replies

Comment options

Thanks for the suggestion!

Out of curiosity: why do you want to connect directly to the remote database? Latencies will be higher.

You must be logged in to vote
3 replies
@remorses
Comment options

Latency shouldn’t be a big issue, I prefer using a remote database to make local setup easier

@mdeville
Comment options

It might be useful even in "local" contexts.
For instance we have a workstation which is shared by many users with one DB for each user.
The connection to each local DB is provided behind an environment variable (like so:$DEV_DB_URI).
Being able to get the URI without writing it directly in thepostgrestools.jsonc file would allow us to commit the config file for everyone.

@psteinroe
Comment options

Makes total sense! Will add an issue for this 🫶🏼

Comment options

I don't see a reference to the newly created issue so I'll link it here just so people know it exists:

#302

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Ideas
Labels
None yet
3 participants
@remorses@mdeville@psteinroe

[8]ページ先頭

©2009-2025 Movatter.jp