Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 24 lines (17 sloc) 0.718 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#!/usr/bin/env perl

use strict;
use warnings;

use Koha::RoseDB;
use Rose::DB::Object::Loader;

use Data::Dumper;

my $loader = Rose::DB::Object::Loader->new(
      db => Koha::RoseDB->new(),
      class_prefix => 'Koha::Schema',
      exclude_tables => ['class_sources', 'opac_news', 'subscription', 'serial', 'serialitems', 'subscription_defaults', 'subscription_serial_items', 'subscriptionhistory', 'subscriptionroutinglist'],
      #include_tables => [ 'periodicals', 'periodical_serials', 'subscriptions', 'subscription_serials', 'biblio', 'biblioitems', 'items' ],
    );

#my @classes = $loader->make_classes;
#printf Dumper \@classes;

$loader->make_modules(
# module_dir => '/home/ctftest2'
);
Something went wrong with that request. Please try again.