Commit 3e2ddee8 authored by Grant, Josh's avatar Grant, Josh
Browse files

add open method mixin for Postgres Database object

parent e9a5fad4
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -6,11 +6,11 @@ import psycopg2

class Postgres_Mixin():
    """Serve common connection method for postgres."""
    def open(self, search_paths='public'):

    def open(self, search_path='public'):
        """ Explicitly open the database connection

        :note: This will send email to Database.CONNECTION_ERR_EMAIL_RECPS if
               unable to establish connection
        :param search_path: the search path to default to

        :return: True if connection established, else false
        """