generated from dhairya/scenario_template
System save at 04/10/2024 15:15 by qatest
This commit is contained in:
parent
ee9f3ba587
commit
d526b38524
@ -18,7 +18,7 @@
|
|||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"from tms_data_interface import SQLQueryInterface\n",
|
"from tms_data_interface import SQLQueryInterface\n",
|
||||||
"seq = SQLQueryInterface()"
|
"seq = SQLQueryInterface(schema = \"qa_schema\")"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -140,7 +140,7 @@
|
|||||||
"from tms_data_interface import SQLQueryInterface\n",
|
"from tms_data_interface import SQLQueryInterface\n",
|
||||||
"\n",
|
"\n",
|
||||||
"class Scenario:\n",
|
"class Scenario:\n",
|
||||||
" seq = SQLQueryInterface()\n",
|
" seq = SQLQueryInterface(schema =\"qa_schema\")\n",
|
||||||
"\n",
|
"\n",
|
||||||
" def logic(self, **kwargs):\n",
|
" def logic(self, **kwargs):\n",
|
||||||
" row_list = self.seq.execute_raw(query.format(trans_data=\"qa_table_test\",\n",
|
" row_list = self.seq.execute_raw(query.format(trans_data=\"qa_table_test\",\n",
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"from tms_data_interface import SQLQueryInterface\n",
|
"from tms_data_interface import SQLQueryInterface\n",
|
||||||
"seq = SQLQueryInterface()"
|
"seq = SQLQueryInterface(schema = \"qa_schema\")"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -140,7 +140,7 @@
|
|||||||
"from tms_data_interface import SQLQueryInterface\n",
|
"from tms_data_interface import SQLQueryInterface\n",
|
||||||
"\n",
|
"\n",
|
||||||
"class Scenario:\n",
|
"class Scenario:\n",
|
||||||
" seq = SQLQueryInterface()\n",
|
" seq = SQLQueryInterface(schema =\"qa_schema\")\n",
|
||||||
"\n",
|
"\n",
|
||||||
" def logic(self, **kwargs):\n",
|
" def logic(self, **kwargs):\n",
|
||||||
" row_list = self.seq.execute_raw(query.format(trans_data=\"qa_table_test\",\n",
|
" row_list = self.seq.execute_raw(query.format(trans_data=\"qa_table_test\",\n",
|
||||||
|
|||||||
4
main.py
4
main.py
@ -11,7 +11,7 @@ import pandas as pd
|
|||||||
|
|
||||||
|
|
||||||
from tms_data_interface import SQLQueryInterface
|
from tms_data_interface import SQLQueryInterface
|
||||||
seq = SQLQueryInterface()
|
seq = SQLQueryInterface(schema = "qa_schema")
|
||||||
|
|
||||||
|
|
||||||
# In[ ]:
|
# In[ ]:
|
||||||
@ -121,7 +121,7 @@ query = """
|
|||||||
from tms_data_interface import SQLQueryInterface
|
from tms_data_interface import SQLQueryInterface
|
||||||
|
|
||||||
class Scenario:
|
class Scenario:
|
||||||
seq = SQLQueryInterface()
|
seq = SQLQueryInterface(schema ="qa_schema")
|
||||||
|
|
||||||
def logic(self, **kwargs):
|
def logic(self, **kwargs):
|
||||||
row_list = self.seq.execute_raw(query.format(trans_data="qa_table_test",
|
row_list = self.seq.execute_raw(query.format(trans_data="qa_table_test",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user