Help for this page

Select Code to Download


  1. or download this
    # to use it you need to create a package named Tables
    package Tables;
    ...
    $primarykey = "<PRIMARY KEY>";
    %dates = (); # list fields with dates here
    %enums = (); # list fields of type enum here
    
  2. or download this
    # I'll use the insert sub as an example
    sub insert {
    ...
       # this is hacky
       $table = ${$class . "::table"};
       $primary = ${$class . "::primarykey"};