Set schema for pgsql in Editor

Help
2011-10-13
2013-06-06
  • Nobody/Anonymous

    I cannot figure out how to set Editor to us a schema other than the default 'public' schema.  This is what I have in my customization script:

    function set_schema($schema) {
                return ($schema == "data");
            }
    

    Thanks for the help!

     
  • Nobody/Anonymous

    FYI- I'm using postgresql!

     
  • Jakub Vrána

    Jakub Vrána - 2011-12-22

    Define this method instead:

            function database() {
                if (connection()) {
                    set_schema('data');
                }
                return 'your_db';
            }
    
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks