Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Set schema for pgsql in Editor

Help
2011-10-13
2013-06-06
  • 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!

     
  • 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';
            }