WEBのシステム開発はPHPを使用していますが、データ解析等のためPython3 の研究を始めました。Python3 は日本語の情報がとても少ないので、エンジニアや学生の皆さんに役立ちそうなことをブログ記事として共有できればと思います。 この記事ではPython3 でMySQL に接続する方法、エラー処理(例外処理)、サンプルによるCRUD(※)、PHPer向け注意点についてまとめました。なおサンプルは Django 等、特定フレームワークのORM ではなく、SQLの直接実行例です。SQLite3 はPython3でSQLite3を使う – 基本操作からエラー処理までサンプルコード付を参照ください。 ※ CRUD とはCreate(生成)、Read(読み取り)、Update(更新)、Delete(削除)の略です。MySQL の場合Read に相当するのは主に Select 文

Andl is coming to Postgres. Postgres is “the world’s most advanced open sourcedatabase”.It is a highly capabledatabase server, and is ordinarily accessed usingSQL queries. Postgres is also highly customisable, with the ability to add new functions, new data types and even new languages. There are currently several language implementations for Postgres, including PL/SQL (similar toSQL/PSM), Py
AWSLambda 関数では、実行に必要なプログラムをZIPでパッケージ化します。AWSLambdaPythonからRDS PostgreSQL に接続する場合はどうでしょうか? PostgreSQLアダプターのpsycopg2をビルドしてLambda関数のルートディレクトリに同梱するだけで済みそうですが、話はそう簡単ではありません。 libpqをpsycopg2に動的リンクさせた場合の弊害 psycopg2 はPostgreSQLクライアント用Cインターフェース libpq のラッパーであり、標準では libpq を動的リンクします。 残念なことに、AWSLambda の実行環境では libpq は共有ライブラリとしてインストールされていないため、libpq を動的リンクしていると libpq が見つからず、以下のようなエラーが発生します。 Unable to import m

The pg/python Project Home Pagepg/python is an open source project working toward the improvement ofPythoninterfaces to PostgreSQL. Driver Overview To install the driver, you should probablyjust use setuptools' easy_install: $ easy_install pg_proboscis. If that is not an option, you can download the source packages in the Download Index(You'll need one of each. :). A unified package may come e
1リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く