PythonのO/RマッパーでSQLを操作できるSQLAlchemyを紹介します。他のPythonライブラリとの連動もしやすいため非常に便利なライブラリです。 O/Rマッパーのメリット/デメリットの記事を参考に貼っておきます。 なおサンプルデータは下記を使用していきます。
Alembic is a database version control framework closely associated with SQLAlchemy, an independent Python ORM. I have used ORMs with Python in the past but more specifically it has been the one that ...
FastAPI is a high-performant REST API framework for Python. It's built on top of Starlette and it uses Pydantic for data validation. It can generate OpenAPI documentation from your code and also ...
前の記事では、スクラッチから始め、FastAPIを使用してフォーラムのプロトタイプを迅速に構築しました。機能は基本的でしたが、投稿とスレッドの表示というフォーラムのコア機能はすでに備わっていました。 このプロトタイプには、1つの重大な問題が ...