SQL::Engine::Operation - SQL Operation
SQL Statement Operation
use SQL::Engine::Operation; my $operation = SQL::Engine::Operation->new( statement => 'SELECT * FROM "tasks" WHERE "reporter" = ? AND "assigned" = ?', bindings => { 0 => 'user_id', 1 => 'user_id' } ); # my @bindings = $operation->parameters({ # user_id => 123 # });
This package provides SQL Statement Operation.
This package uses type constraints from:
Types::Standard
This package has the following attributes:
bindings(HashRef)
This attribute is read-only, accepts (HashRef) values, and is required.
(HashRef)
statement(Str)
This attribute is read-only, accepts (Str) values, and is required.
(Str)
This package implements the following methods:
parameters(Maybe[HashRef] $values) : ArrayRef
The parameters method returns positional bind values for use with statement handlers.
# given: synopsis my $bindings = $operation->parameters({ user_id => 123 }); # [123, 123]
Al Newkirk, awncorp@cpan.org
awncorp@cpan.org
Copyright (C) 2011-2019, Al Newkirk, et al.
This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file".
Wiki
Project
Initiatives
Milestones
Contributing
Issues
To install SQL::Engine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SQL::Engine
CPAN shell
perl -MCPAN -e shell install SQL::Engine
For more information on module installation, please visit the detailed CPAN module installation guide.