DBIx::Simplish::Result - A result of a DBIx::Simplish query.
version 1.002001
@columns = $result->columns $result->into($foo, $bar, $baz) $row = $result->fetch @row = $result->list @rows = $result->flat $row = $result->array @rows = $result->arrays $row = $result->hash @rows = $result->hashes @row = $result->kv_list @rows = $result->kv_flat $row = $result->kv_array @rows = $result->kv_arrays %map = $result->map_arrays(...) %map = $result->map_hashes(...) %map = $result->map $rows = $result->rows $dump = $result->text $result->finish
Result class for DBIx::Simplish
Returns a copy of an sth attribute (property). See "Statement Handle Attributes" in DBI for details.
This calls the func method on the sth of DBI. See DBI for details.
Returns the number of rows affected by the last row affecting command, or -1 if the number of rows is not known or not available.
For SELECT statements, it is generally not possible to know how many rows are returned. MySQL does provide this information. See DBI for a detailed explanation.
Finishes the statement. After finishing a statement, it can no longer be used. When the result object is destroyed, its statement handle is automatically finished and destroyed. There should be no reason to call this method explicitly; just let the result object go out of scope.
Returns a reference to the array that holds the values. This is the same array every time.
Subsequent fetches (using any method) may change the values in the variables passed and the returned reference's array.
Returns a list of column names. Affected by lc_columns.
Binds the given LIST of variables to the columns. Unlike with DBI's bind_columns, passing references is not needed.
Bound variables are very efficient. Binding a tied variable doesn't work.
Combines bind with fetch. Returns what fetch returns.
Returns a list of values, or (in scalar context), only the last value.
Returns a reference to a hash, keyed by column name. Affected by lc_columns.
lc_columns
Returns a reference to an array.
Returns an ordered list of interleaved keys and values. Affected by lc_columns.
Returns a reference to an array of interleaved column names and values. Like kv, but returns an array reference even in list context. Affected by lc_columns.
Returns an instance of $class. Possibly affected by lc_columns.
Returns a flattened list.
Returns a list of references to arrays
Returns a list of references to hashes, keyed by column name. Affected by lc_columns.
Returns an flattened list of interleaved column names and values. Affected by lc_columns.
Returns a list of references to arrays of interleaved column names and values. Affected by lc_columns.
Returns a list of instances of $class. Possibly affected by lc_columns.
Constructs a hash of array references keyed by the values in the chosen column, and returns a list of interleaved keys and values, or (in scalar context), a reference to a hash.
Constructs a hash of hash references keyed by the values in the chosen column, and returns a list of interleaved keys and values, or (in scalar context), a reference to a hash. Affected by lc_columns.
Constructs a simple hash, using the two columns as key/value pairs. Should only be used with queries that return two columns. Returns a list of interleaved keys and values, or (in scalar context), a reference to a hash.
DBIx::Simplish
Hans Staugaard <staugaard@cpan.org>
This software is copyright (c) 2016 by Hans Staugaard.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install DBIx::Simplish, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Simplish
CPAN shell
perl -MCPAN -e shell install DBIx::Simplish
For more information on module installation, please visit the detailed CPAN module installation guide.