Scope :: Container :: DBI

DB-verbindingsbeheerder met Scope :: Container
Download nu

Scope :: Container :: DBI Rangschikking & Samenvatting

Advertentie

  • Rating:
  • Vergunning:
  • Perl Artistic License
  • Naam uitgever:
  • Masahiro Nagano
  • Uitgever website:
  • http://search.cpan.org/~kazeburo/

Scope :: Container :: DBI Tags


Scope :: Container :: DBI Beschrijving

DB Connection Manager met Scope :: Container Scope :: Container :: DBI is DB Connection Manager die Scope :: Container gebruikt. U kunt DB-aansluiting regelen binnen elke bereik. Synopsis Gebruik Scope :: Container :: DBI; Gebruik Scope :: Container; Foo: {My $ Contaier = Start_Scope_Container (); # Sprik eerst mijn $ dbh = scope :: container :: dbi-> connect ('dbi: mySQL: mydb; host = myhost', 'myuser', 'mypasswd', {sweerror => 1, mysql_connect_timeout => 4, mysql_enable_utf8 => 1}); # Zelfde DSN, Gebruiker / Pas, en Attributen, Hergebruik My $ DBH2 = Scope :: Container :: dbi-> Connect ('DBI: MySQL: MyDB; Host = MyHost', 'MyUser', 'MyPasswd', {Stecherror => 1, mysql_connect_timeout => 4, mysql_enable_utf8 => 1}); #Disconnect} Bar: {My $ Contaier = Start_Scope_Container (); # Verbinden willekeurig mijn $ dbh = scope :: container :: dbi-> connect (, , ,) ; # Hergebruik willekeurig verbonden mijn $ dbh2 = scope :: Container :: DBI-> Connect (, , , ); } Vereisten: · Perl


Scope :: Container :: DBI Gerelateerde software