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.