<reponame>rlelito/DesignPatterns<filename>factory_method/factory_method_main.py
from query_sql_server import QuerySQLServer
from query_oracle import QueryOracle

if __name__ == "__main__":
    sql_query = "SELECT * FROM table"

    sql_server = QuerySQLServer()
    sql_server.execute_query("DataBaseSQLServer", sql_query)
    print('-'*64)
    oracle = QueryOracle()
    oracle.execute_query("DataBaseOracle", sql_query)

from query_sql_server import QuerySQLServer
from query_oracle import QueryOracle

if __name__ == "__main__":
    sql_query = "SELECT * FROM table"

    sql_server = QuerySQLServer()
    sql_server.execute_query("DataBaseSQLServer", sql_query)
    print('-'*64)
    oracle = QueryOracle()
    oracle.execute_query("DataBaseOracle", sql_query)