前回の記事でPostgreSQLのサーバー立ち上げとテーブル作成までできたので、今回はPythonのプログラムからDB操作をします。 1.Pythonライブラリの準備 PythonからPostgreSQLの操作をするための準備をしていきます。 主にこちらの記事を参考にさせていただきました。
Python初心者が、PostgreSQLをpgAdmin 4でセットアップして、Pythonから操作できるようになるための備忘録です。 まずはDB準備編ということで、やっていきます! やること:サーバー作成〜アクセス権限設定まで(SQLは使わずGUI操作のみ) 動作環境:Mac M2 / Python 3.13 1 ...
Psycopg is the most popular PostgreSQL database adapter for the Python programming language. Its main features are the complete implementation of the Python DB API 2.0 specification and the thread ...
asyncpg is a database interface library designed specifically for PostgreSQL and Python/asyncio. asyncpg is an efficient, clean implementation of PostgreSQL server binary protocol for use with ...
Your browser does not support the audio element.