Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 3
0
 def __init__(self, connection_string):
     self.store_command = PostgresStoreCommand(connection_string)
     self.get_command = PostgresGetCommnad(connection_string)
Exemplo n.º 4
0
 def __init__(self, connection_string):
     self.store_command = PostgresStoreCommand(connection_string)
     self.get_command = PostgresGetCommnad(connection_string)