Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
簡単な質問ですが、次のコマンドは指定されたデータベースに自動的に接続しますか?
R::addDatabase('DB1','sqlite:/tmp/d1.sqlite','user','password',$frozen);
それとも、実際にクエリを実行しようとするまで待機しますか?
私の知る限り、データベースを追加しても自動的に接続されることはありません。使用R::selectDatabase('DB1');すると接続が試行され、接続できない場合はエラーがスローされます。あなたはおそらくすでにこれらすべてを理解していますが...
R::selectDatabase('DB1');