Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some method to enable PostgreSQL extensions? #480

Open
kawaii opened this issue Apr 29, 2021 · 1 comment
Open

Some method to enable PostgreSQL extensions? #480

kawaii opened this issue Apr 29, 2021 · 1 comment

Comments

@kawaii
Copy link

kawaii commented Apr 29, 2021

It's nice that Red can create tables for me if they don't already exist, but would it be possible to have some way to enable extensions when they are needed? Or perhaps this is already possible? :)

Example, allows for use of the 'uuid' column type;

CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
@FCO
Copy link
Owner

FCO commented May 4, 2021

That's a good idea!
But for now, if needed you can do something like this:

red-do {
    .execute: 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp"'
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants