in reply to DBIx::Class and Dancer2
I've made a little progress. I had my db in the ./lib directory of the app. I moved it to /tmp and used:
my $schema = My::Class->connect('dbi:SQLite:dbname=/tmp/database.db'); my $record = $schema->resultset('Report')->new(\%data); $record->insert();
I am now getting the following error:
DBI Exception: DBD::SQLite::st execute failed: UNIQUE constraint fail +ed: report.id
This should be an easy fix however, it did actually do the insert into the database.
|
|---|