{
 "cells": [
  {
   "cell_type": "code",
   "id": "initial_id",
   "metadata": {
    "collapsed": true,
    "ExecuteTime": {
     "end_time": "2024-10-29T14:55:16.421757Z",
     "start_time": "2024-10-29T14:55:15.130962Z"
    }
   },
   "source": [
    "import pandas as pd\n",
    "from utils.connection import connect\n",
    "\n",
    "df = pd.read_sql('SELECT * FROM SONGWHIP_PRESAVE_PAGE_DBT;', connect())\n",
    "df"
   ],
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/var/folders/97/w083sqkd6zb1_m6x2z91p1nm0000gp/T/ipykernel_27674/3175806975.py:4: UserWarning: pandas only supports SQLAlchemy connectable (engine/connection) or database string URI or sqlite3 DBAPI2 connection. Other DBAPI2 objects are not tested. Please consider using SQLAlchemy.\n",
      "  df = pd.read_sql('SELECT * FROM SONGWHIP_PRESAVE_PAGE_DBT;', connect())\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "  ID   NAME                 GLOBAL_PARTICIPANT_ID  VENDOR_ID  SUBACCOUNT_ID  \\\n",
       "0  1  test1  cce36d30-3994-40b1-99e0-d4c5ca4b5403     123212            123   \n",
       "1  1  test1  db52f803-970a-4d35-af12-e811b72d209f     123212            123   \n",
       "\n",
       "  CREATED_AT  \n",
       "0 2022-02-02  \n",
       "1 2022-02-02  "
      ],
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>ID</th>\n",
       "      <th>NAME</th>\n",
       "      <th>GLOBAL_PARTICIPANT_ID</th>\n",
       "      <th>VENDOR_ID</th>\n",
       "      <th>SUBACCOUNT_ID</th>\n",
       "      <th>CREATED_AT</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>test1</td>\n",
       "      <td>cce36d30-3994-40b1-99e0-d4c5ca4b5403</td>\n",
       "      <td>123212</td>\n",
       "      <td>123</td>\n",
       "      <td>2022-02-02</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1</td>\n",
       "      <td>test1</td>\n",
       "      <td>db52f803-970a-4d35-af12-e811b72d209f</td>\n",
       "      <td>123212</td>\n",
       "      <td>123</td>\n",
       "      <td>2022-02-02</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "execution_count": 4
  },
  {
   "metadata": {},
   "cell_type": "markdown",
   "source": "",
   "id": "f8eb1884ea422fbd"
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
