Subject: | Fey::SQL::Insert doesn't work |
The docs seem to imply that this would work:
Yet, I can't get it to.
use Fey::SQL;
use Fey::Table;
use Fey::Schema;
use Fey::Placeholder;
use Fey::Literal;
my $s = Fey::Schema->new( name => 'clients' );
my $t = Fey::Table->new( name => 'contact' );
$s->add_table($t);
my $sql = Fey::SQL->new_insert;
$sql->insert->into($t);
my $p = Fey::Placeholder->new;
my $l = Fey::Literal->new_from_scalar('foo');
$sql->values({ 'foo' => $p });
--
Evan Carroll
System Lord of the Internets
http://www.evancarroll.com