开发者

How can I set flag CLIENT_MULTI_STATEMENTS for mysql2 ruby gem?

开发者 https://www.devze.com 2023-01-17 20:07 出处:网络
Or another way to run multiple queries in one function call in 开发者_开发知识库mysql2 gem? When you setup a new client you can add it to the flags

Or another way to run multiple queries in one function call in 开发者_开发知识库mysql2 gem?


When you setup a new client you can add it to the flags

client = Mysql2::Client.new(:host => 'localhost', :database => 'my_db', :username => "root", :password => "", :flags => Mysql2::Client::MULTI_STATEMENTS)
0

精彩评论

暂无评论...
验证码 换一张
取 消