PythonのO/RマッパーでSQLを操作できるSQLAlchemyを紹介します。他のPythonライブラリとの連動もしやすいため非常に便利なライブラリです。 O/Rマッパーのメリット/デメリットの記事を参考に貼っておきます。 なおサンプルデータは下記を使用していきます。
This a sample project written by PingCAP for SQLAlchemy to connect to TiDB. TiDB is a MySQL-compatible database. And SQLAlchemy is the Python SQL toolkit and ORM(Object Relational Mapper). SQLAlchemy ...
前回は簡単なToDoリストアプリを作りながら、Flaskを利用したWebアプリ開発で使用するいろいろな事項(Flaskが提供する各種メソッドやオブジェクト、Jinja2テンプレート、静的ファイルの扱いなど)を見た。今回はFlask-SQLAlchemyを利用して、このToDoリストアプリに ...
We’re pleased to share that SQLAlchemy 2.1.0 is now generally available, with built-in support for mssql-python, Microsoft’s Python driver for SQL Server. You can now use it with SQLAlchemy’s ORM and ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する