DBD::Sponge - Create a DBI statement handle from Perl data


DBI documentation  | view source Contained in the DBI distribution.

Index


NAME

Top

DBD::Sponge - Create a DBI statement handle from Perl data

SYNOPSIS

Top

  my $sponge = DBI->connect("dbi:Sponge:","","",{ RaiseError => 1 });
  my $sth = $sponge->prepare($statement, {
          rows => $data,
          NAME => $names,
          %attr
      }
  );

DESCRIPTION

Top

DBD::Sponge is useful for making a Perl data structure accessible through a standard DBI statement handle. This may be useful to DBD module authors who need to transform data in this way.

METHODS

Top

connect()

  my $sponge = DBI->connect("dbi:Sponge:","","",{ RaiseError => 1 });

Here's a sample syntax for creating a database handle for the Sponge driver. No username and password are needed.

prepare()

  my $sth = $sponge->prepare($statement, {
          rows => $data,
          NAME => $names,
          %attr
      }
  );

BUGS

Top

Using this module to prepare INSERT-like statements is not currently documented.

AUTHOR AND COPYRIGHT

Top

SEE ALSO

Top

DBI


DBI documentation  | view source Contained in the DBI distribution.