diff options
Diffstat (limited to 'bin/app.pl')
-rwxr-xr-x | bin/app.pl | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -5,7 +5,8 @@ use Dancer; use DBI; #Struktura bazy -#id, int; isbn, int; tytul, string; autor, string; owner, string; state, bool (czy pozyczona, 0=dostepna, 1=wzieta); type, bool (mozna brac ze soba? 1=tak, 0=nie) +#id, int; isbn, int; tytul, string; autor, string; owner, string; +#state, bool (czy pozyczona, 1=dostepna, 0=wzieta); can_borrow, bool (mozna brac ze soba? 1=tak, 0=nie) my $dbfile = 'ksiazki.db'; my $dbh = DBI->connect("dbi:SQLite:dbname=$dbfile", "", ""); |