Example #1
0
class PostgresDatabase():
    def __init__(self, connection_string):
        self.store_command = PostgresStoreCommand(connection_string)
        self.get_command = PostgresGetCommnad(connection_string)

    def store(self, feed):
        return self.store_command.store(feed)

    def get(self, operation, param):
        return self.get_command.get(operation, param)
Example #2
0
class PostgresDatabase():
    def __init__(self, connection_string):
        self.store_command = PostgresStoreCommand(connection_string)
        self.get_command = PostgresGetCommnad(connection_string)

    def store(self, feed):
        return self.store_command.store(feed)

    def get(self, operation, param):
        return self.get_command.get(operation, param)
Example #3
0
 def __init__(self, connection_string):
     self.store_command = PostgresStoreCommand(connection_string)
     self.get_command = PostgresGetCommnad(connection_string)
Example #4
0
 def __init__(self, connection_string):
     self.store_command = PostgresStoreCommand(connection_string)
     self.get_command = PostgresGetCommnad(connection_string)