- Timestamp:
- 06/03/13 20:28:59 (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Bookmarks.pm
r46 r47 31 31 } 32 32 } 33 } 34 35 sub create_tables { 36 my $self = shift; 37 require File::Slurp; 38 my $table_definitions = File::Slurp::read_file('bookmarks.sql'); 39 $self->dbh->{sqlite_allow_multiple_statements} = 1; 40 $self->dbh->do($table_definitions); 41 $self->dbh->{sqlite_allow_multiple_statements} = 0; 42 return $self; 33 43 } 34 44 -
trunk/bkmk
r26 r47 20 20 21 21 my %action_for = ( 22 init => sub { 23 $bookmarks->create_tables; 24 }, 22 25 get => sub { 23 26 my $identifier = shift;
Note: See TracChangeset
for help on using the changeset viewer.