1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【VBA】PostgreSQL用のORM (っぽいもの)

Posted at

はじめに

Excel VBAを使ったアプリケーションにおいて、当方ではデータベースとしてPostgreSQLを使用している
ただ、毎回コネクションしたりSQL書いたりと面倒くさい事が多い

Pythonでいうところの「Sqlalchemy」のようなORMがあれば便利だがVBAでそんなものは無く、
無いならばとORM(っぽいもの)を作成したので公開します

詳しく使い方についてはdocumentation.mdを読んで下さい

先にお詫び

PostgresORM風なものを作ったには作ったのだがSQLでいうJOIN句のように、2つ以上のテーブルを接続する機能が実装出来ていない
(そこまでやる気力が無かった)

最後に

今回作成したORM風プログラムはクラスモジュールを理解する上で良い勉強になりました
ニーズとしてはかなりニッチなものとは思いますが使いにくいところや、もっと良いコードの書き方があるなどあれば、是非フィードバック頂けると嬉しいです

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?