From c02175ba1ed1926c670d5ad3f42d4c4002caa4d6 Mon Sep 17 00:00:00 2001 From: user_client2024 Date: Wed, 9 Oct 2024 06:54:45 +0000 Subject: [PATCH] System save at 09/10/2024 12:24 by user_client2024 --- .ipynb_checkpoints/main-checkpoint.ipynb | 108 ++++++++++++++++++----- main.ipynb | 108 ++++++++++++++++++----- main.py | 62 ++++++++++--- 3 files changed, 219 insertions(+), 59 deletions(-) diff --git a/.ipynb_checkpoints/main-checkpoint.ipynb b/.ipynb_checkpoints/main-checkpoint.ipynb index 9d1d0a7..fc1c1d9 100644 --- a/.ipynb_checkpoints/main-checkpoint.ipynb +++ b/.ipynb_checkpoints/main-checkpoint.ipynb @@ -1,27 +1,9 @@ { "cells": [ - { - "cell_type": "code", - "execution_count": 1, - "id": "8faa31bf-9b17-4b96-88c0-973636321b97", - "metadata": { - "tags": [] - }, - "outputs": [], - "source": [] - }, { "cell_type": "code", "execution_count": null, - "id": "4c41b476-0dd0-456c-a68e-79740a3bd820", - "metadata": {}, - "outputs": [], - "source": [] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "735e6ac9-688f-47a0-98c2-11499dceeaba", + "id": "2bbb9c42-25b7-4ffa-9cd0-43050027c960", "metadata": {}, "outputs": [], "source": [ @@ -31,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "a050c95f-4104-461e-afa4-e824639eedb5", + "id": "0ba70394-3bc4-459c-b77c-35ef1b6562c2", "metadata": {}, "outputs": [], "source": [ @@ -41,10 +23,22 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "id": "291c2098-902b-4a99-a3d6-df42d0749528", "metadata": {}, - "outputs": [], + "outputs": [ + { + "ename": "NameError", + "evalue": "name 'seq' is not defined", + "output_type": "error", + "traceback": [ + "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", + "\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)", + "Cell \u001b[0;32mIn[3], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[43mseq\u001b[49m\u001b[38;5;241m.\u001b[39mexecute_raw(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mshow tables\u001b[39m\u001b[38;5;124m\"\u001b[39m)\n", + "\u001b[0;31mNameError\u001b[0m: name 'seq' is not defined" + ] + } + ], "source": [ "seq.execute_raw(\"show tables\")" ] @@ -239,9 +233,27 @@ { "cell_type": "code", "execution_count": null, - "id": "98b5784d-2738-4962-b966-ae76593d7a1e", + "id": "735e6ac9-688f-47a0-98c2-11499dceeaba", "metadata": {}, "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "a050c95f-4104-461e-afa4-e824639eedb5", + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "98b5784d-2738-4962-b966-ae76593d7a1e", + "metadata": { + "tags": [] + }, + "outputs": [], "source": [ "from tms_data_interface import SQLQueryInterface\n", " \n", @@ -274,6 +286,56 @@ " return df\n", " " ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "8faa31bf-9b17-4b96-88c0-973636321b97", + "metadata": { + "tags": [] + }, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "4c41b476-0dd0-456c-a68e-79740a3bd820", + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "62e492d2-9f98-4deb-870c-9a28fe30b705", + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "7d1037c7-48bf-4fa5-878c-f155b1e5f77f", + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "0c85bcf5-dada-4f80-91d7-8341da38f617", + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "20dd49b4-6ea1-4c21-b9e2-615214d3bcb9", + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": { diff --git a/main.ipynb b/main.ipynb index 9d1d0a7..fc1c1d9 100644 --- a/main.ipynb +++ b/main.ipynb @@ -1,27 +1,9 @@ { "cells": [ - { - "cell_type": "code", - "execution_count": 1, - "id": "8faa31bf-9b17-4b96-88c0-973636321b97", - "metadata": { - "tags": [] - }, - "outputs": [], - "source": [] - }, { "cell_type": "code", "execution_count": null, - "id": "4c41b476-0dd0-456c-a68e-79740a3bd820", - "metadata": {}, - "outputs": [], - "source": [] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "735e6ac9-688f-47a0-98c2-11499dceeaba", + "id": "2bbb9c42-25b7-4ffa-9cd0-43050027c960", "metadata": {}, "outputs": [], "source": [ @@ -31,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "a050c95f-4104-461e-afa4-e824639eedb5", + "id": "0ba70394-3bc4-459c-b77c-35ef1b6562c2", "metadata": {}, "outputs": [], "source": [ @@ -41,10 +23,22 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "id": "291c2098-902b-4a99-a3d6-df42d0749528", "metadata": {}, - "outputs": [], + "outputs": [ + { + "ename": "NameError", + "evalue": "name 'seq' is not defined", + "output_type": "error", + "traceback": [ + "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", + "\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)", + "Cell \u001b[0;32mIn[3], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[43mseq\u001b[49m\u001b[38;5;241m.\u001b[39mexecute_raw(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mshow tables\u001b[39m\u001b[38;5;124m\"\u001b[39m)\n", + "\u001b[0;31mNameError\u001b[0m: name 'seq' is not defined" + ] + } + ], "source": [ "seq.execute_raw(\"show tables\")" ] @@ -239,9 +233,27 @@ { "cell_type": "code", "execution_count": null, - "id": "98b5784d-2738-4962-b966-ae76593d7a1e", + "id": "735e6ac9-688f-47a0-98c2-11499dceeaba", "metadata": {}, "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "a050c95f-4104-461e-afa4-e824639eedb5", + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "98b5784d-2738-4962-b966-ae76593d7a1e", + "metadata": { + "tags": [] + }, + "outputs": [], "source": [ "from tms_data_interface import SQLQueryInterface\n", " \n", @@ -274,6 +286,56 @@ " return df\n", " " ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "8faa31bf-9b17-4b96-88c0-973636321b97", + "metadata": { + "tags": [] + }, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "4c41b476-0dd0-456c-a68e-79740a3bd820", + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "62e492d2-9f98-4deb-870c-9a28fe30b705", + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "7d1037c7-48bf-4fa5-878c-f155b1e5f77f", + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "0c85bcf5-dada-4f80-91d7-8341da38f617", + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "20dd49b4-6ea1-4c21-b9e2-615214d3bcb9", + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": { diff --git a/main.py b/main.py index 20b19ca..d0c32dd 100644 --- a/main.py +++ b/main.py @@ -1,18 +1,6 @@ #!/usr/bin/env python # coding: utf-8 -# In[1]: - - - - - -# In[ ]: - - - - - # In[ ]: @@ -26,7 +14,7 @@ from tms_data_interface import SQLQueryInterface seq = SQLQueryInterface(schema="transactionschema") -# In[ ]: +# In[3]: seq.execute_raw("show tables") @@ -215,6 +203,18 @@ query = """ +# In[ ]: + + + + + +# In[ ]: + + + + + # In[ ]: @@ -249,3 +249,39 @@ class Scenario: return df + +# In[ ]: + + + + + +# In[ ]: + + + + + +# In[ ]: + + + + + +# In[ ]: + + + + + +# In[ ]: + + + + + +# In[ ]: + + + +