github / github/codespaces-jupyter
screen
- 主要言語
- Jupyter Notebook
- スター
- 894
- フォーク
- 1.7k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
import mysql.connector
from contextlib import contextmanager
DB_CONFIG = {
"host": "localhost",
"user": "root",
"password": "",
"database": "School_Fees_DB"
}
@contextmanager
def get_db():
conn = mysql.connector.connect(**DB_CONFIG)
cursor = conn.cursor(dictionary=True)
try:
yield cursor
conn.commit()
except Exception as e:
conn.rollback()
raise e
finally:
cursor.close()
conn.close()
コントリビューションガイド
調査の方向性
The issue contains only a code snippet and does not identify a repository file, test, failing behavior, or requested change. Clarify the intended outcome and provide reproduction steps before selecting an entry point or defining what done means.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- mysql, python
- 領域
- databases
- issue の種類
- バグ
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 静か
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 5/100