<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'><div>Hi all.</div><div><br></div><div>While writing the PostgresV3 help, I am following <a href="http://forum.world.st/template/NamlServlet.jtp?macro=user_nodes&user=368460" style="color: rgb(0, 79, 135); font-size: 13.44px; font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-weight: bold; text-align: center; white-space: nowrap; background-color: rgb(238, 238, 238);">Balázs Kósi-2</a> example here: http://forum.world.st/Status-of-PostgresV3-td4780110.html</div><div><br></div><div>In the section on SchemaMirror </div><div><br><blockquote style="border: 1px solid rgb(204, 204, 204); padding: 7px; background-color: rgb(245, 245, 245);"><div> </div><span style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);">To create a schema mirror, subclass PG3SchemaMirror and implement its pool and schema class side methods.</span><br style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);"><br style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);"><span style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);">YourSchemaMirror class >> pool</span><br style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);"><br style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);"><span style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);">    ^YourConnectionPool default</span><br style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);"><br style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);"><br style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);"><span style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);">YourSchemaMirror class >> schema</span><br style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);"><br style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);"><span style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);">    ^’schema_name’</span><br style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);"><br style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);"><br style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);"><span style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);">Schema mirrors mirror the functions in your database and provide an interface to call them. There is a little tool to inspect the differences between the methods of the schema mirror and the functions in the database, which can be invoked by:</span><br style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);"><br style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);"><span style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);">YourSchemaMirror browseChanges</span><br style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);"><br style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);"><span style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);">You can up and download functions via this interface. In earlier times we would write the database functions in pgAdmin3 and download them into the image. Nowadays we use the smalltalk browser to write the plpgsql code. You can set the autocommit behavior with:</span><br style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);"><br style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);"><span style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px; background-color: rgb(255, 255, 255);">YourSchemaMirror commitOnAccept: true</span></blockquote><br>I have this beautiful tool that lists all the functions in my schema and it has buttons "Download All" and "Upload All" etc.</div><div><br></div><div>My question are "Which way is Up" and "Which way is Down"?</div><div><br></div><div>What I want to accomplish is this direction [My database] ---->[Squeak]</div><div><br></div><div>I am guessing that I want to Upload, BUT  for documentation purposes I want to be clear. Also,  I don't want to have to re-import the functions.</div><div><br></div><div>thx</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br><br></div></div><br></body></html>