2016-03-25から1日間の記事一覧
PHPのデータベース操作ライブラリ「idiorm」で複数のDB(SQLite)を使う方法です。 //hogege.dbからレコードを取得 ORM::configure('sqlite:'.'./hogege.db', null, 'db1'); $rec_hogege = ORM::for_table('table1', 'db1')->where('id', '123')->find_one(); …
PHPのデータベース操作ライブラリ「idiorm」で複数のDB(SQLite)を使う方法です。 //hogege.dbからレコードを取得 ORM::configure('sqlite:'.'./hogege.db', null, 'db1'); $rec_hogege = ORM::for_table('table1', 'db1')->where('id', '123')->find_one(); …