Hello

I'm wondering if it's possible to do :

Sequel.migration do
  up do
    run <<-SQL
      CREATE EXTENSION IF NOT EXISTS postgres_fdw;
      CREATE EXTENSION IF NOT EXISTS dblink;


      CREATE SERVER foreign_server
              FOREIGN DATA WRAPPER postgres_fdw
              OPTIONS (host ENV['DATABASE_HOST'],
                       port '5439',
                       dbname ENV['DATABASE_NAME',
                       sslmode 'require');
      SQL
  end
  # ...
end

I tried inside `"#{ }"` with the same behavior but values are not read : 


              OPTIONS (host "",
                       port "5439',
                       dbname '",
                       sslmode 'require');

Is there a way to handle this?
Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to