Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Dancer-Plugin-Database CPAN distribution.

Report information
The Basics
Id: 74624
Status: new
Priority: 0/
Queue: Dancer-Plugin-Database

People
Owner: Nobody in particular
Requestors: jakob.voss [...] gbv.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Show how to initialize database
It would be helpful to show how to initialize a database using this plugin. You find solutions that create an 'init_db' sub in the application, but this Plugin should better help. I use SQLite and have an SQL file with CREATE TABLE IF NOT EXISTS statements, which is run via on_connect_do: '.read "sql_create.sql"' in config.yml. However this may only works with SQLite. How about an 'on_connect_read' to specify a file with SQL statements that are executed on connection.