From: Brandon Black Date: Wed, 22 Mar 2006 06:14:02 +0000 (+0000) Subject: dropped dist files autogenerated by M::B, updated Changes for 0.02007 release X-Git-Tag: 0.03000~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ac8905642c58645ca2a8149d822f151760dffcc1;hp=09d632a1a14215a5b472f04978466fa654bbb768;p=dbsrgits%2FDBIx-Class-Schema-Loader.git dropped dist files autogenerated by M::B, updated Changes for 0.02007 release --- diff --git a/Changes b/Changes index dfb8f49..3899992 100644 --- a/Changes +++ b/Changes @@ -1,8 +1,8 @@ Revision history for Perl extension DBIx::Class::Schema::Loader -0.02007 Not yet released - - Backported Class::C3::reinitialize changes from branch, - resulting in significantly reduced load time +0.02007 Wed Mar 22 06:03:53 UTC 2006 + - Backported Class::C3::reinitialize changes from -refactor + branch, resulting in significantly reduced load time 0.02006 Fri Mar 17 04:55:55 UTC 2006 - Fix long-standing table/col-name case bugs diff --git a/MANIFEST b/MANIFEST deleted file mode 100644 index 4c167c0..0000000 --- a/MANIFEST +++ /dev/null @@ -1,29 +0,0 @@ -Build.PL -Changes -lib/DBIx/Class/Schema/Loader.pm -lib/DBIx/Class/Schema/Loader/DB2.pm -lib/DBIx/Class/Schema/Loader/Generic.pm -lib/DBIx/Class/Schema/Loader/mysql.pm -lib/DBIx/Class/Schema/Loader/Pg.pm -lib/DBIx/Class/Schema/Loader/SQLite.pm -lib/DBIx/Class/Schema/Loader/Writing.pm -Makefile.PL -MANIFEST This list of files -META.yml -README -t/01use.t -t/02pod.t -t/03podcoverage.t -t/04kwalitee.t -t/10sqlite_common.t -t/11mysql_common.t -t/12pg_common.t -t/13db2_common.t -t/lib/DBIx/Class/TestComponent.pm -t/lib/DBIx/Class/TestRSComponent.pm -t/lib/dbixcsl_common_tests.pm -t/lib/DBIXCSL_Test/Schema/LoaderTest1.pm -t/lib/TestAdditional.pm -t/lib/TestAdditionalBase.pm -t/lib/TestLeftBase.pm -TODO diff --git a/META.yml b/META.yml deleted file mode 100644 index 3bfd22d..0000000 --- a/META.yml +++ /dev/null @@ -1,36 +0,0 @@ ---- -name: DBIx-Class-Schema-Loader -version: 0.02007 -author: - - 'Brandon Black, C' -abstract: Dynamic definition of a DBIx::Class::Schema -license: perl -requires: - Class::Accessor::Fast: 0.22 - Class::C3: 0.09 - Class::Data::Accessor: 0.02 - DBIx::Class: 0.05006 - Lingua::EN::Inflect: 0 - Text::Balanced: 0 - UNIVERSAL::require: 0.1 -build_requires: - DBD::SQLite: 1.11 - DBI: 1.4 - Test::More: 0.32 -provides: - DBIx::Class::Schema::Loader: - file: lib/DBIx/Class/Schema/Loader.pm - version: 0.02007 - DBIx::Class::Schema::Loader::DB2: - file: lib/DBIx/Class/Schema/Loader/DB2.pm - DBIx::Class::Schema::Loader::Generic: - file: lib/DBIx/Class/Schema/Loader/Generic.pm - DBIx::Class::Schema::Loader::Pg: - file: lib/DBIx/Class/Schema/Loader/Pg.pm - DBIx::Class::Schema::Loader::SQLite: - file: lib/DBIx/Class/Schema/Loader/SQLite.pm - DBIx::Class::Schema::Loader::Writing: - file: lib/DBIx/Class/Schema/Loader/Writing.pm - DBIx::Class::Schema::Loader::mysql: - file: lib/DBIx/Class/Schema/Loader/mysql.pm -generated_by: Module::Build version 0.2611 diff --git a/README b/README deleted file mode 100644 index 90b020e..0000000 --- a/README +++ /dev/null @@ -1,123 +0,0 @@ -NAME - DBIx::Class::Schema::Loader - Dynamic definition of a - DBIx::Class::Schema - -SYNOPSIS - package My::Schema; - use base qw/DBIx::Class::Schema::Loader/; - - sub _monikerize { - my $name = shift; - $name = join '', map ucfirst, split /[\W_]+/, lc $name; - $name; - } - - __PACKAGE__->load_from_connection( - connect_info => [ "dbi:mysql:dbname", - "root", - "mypassword", - { AutoCommit => 1 }, - ], - additional_classes => [qw/DBIx::Class::Foo/], - additional_base_classes => [qw/My::Stuff/], - left_base_classes => [qw/DBIx::Class::Bar/], - components => [qw/ResultSetManager/], - resultset_components => [qw/AlwaysRS/], - constraint => '^foo.*', - relationships => 1, - options => { AutoCommit => 1 }, - inflect_map => { child => 'children' }, - moniker_map => \&_monikerize, - debug => 1, - ); - - # in seperate application code ... - - use My::Schema; - - my $schema1 = My::Schema->connect( $dsn, $user, $password, $attrs); - # -or- - my $schema1 = "My::Schema"; - # ^^ defaults to dsn/user/pass from load_from_connection() - - # Get a list of the original (database) names of the tables that - # were loaded - my @tables = $schema1->loader->tables; - - # Get a hashref of table_name => 'TableName' table-to-moniker - # mappings. - my $monikers = $schema1->loader->monikers; - - # Get a hashref of table_name => 'My::Schema::TableName' - # table-to-classname mappings. - my $classes = $schema1->loader->classes; - - # Use the schema as per normal for DBIx::Class::Schema - my $rs = $schema1->resultset($monikers->{foo_table})->search(...); - -DESCRIPTION - DBIx::Class::Schema::Loader automates the definition of a - DBIx::Class::Schema by scanning table schemas and setting up columns and - primary keys. - - DBIx::Class::Schema::Loader supports MySQL, Postgres, SQLite and DB2. - See DBIx::Class::Schema::Loader::Generic for more, and - DBIx::Class::Schema::Loader::Writing for notes on writing your own - db-specific subclass for an unsupported db. - - This module requires DBIx::Class 0.05 or later, and obsoletes - DBIx::Class::Loader for DBIx::Class version 0.05 and later. - - While on the whole, the bare table definitions are fairly - straightforward, relationship creation is somewhat heuristic, especially - in the choosing of relationship types, join types, and relationship - names. The relationships generated by this module will probably never be - as well-defined as hand-generated ones. Because of this, over time a - complex project will probably wish to migrate off of - DBIx::Class::Schema::Loader. - - It is designed more to get you up and running quickly against an - existing database, or to be effective for simple situations, rather than - to be what you use in the long term for a complex database/project. - - That being said, transitioning your code from a Schema generated by this - module to one that doesn't use this module should be straightforward and - painless, so don't shy away from it just for fears of the transition - down the road. - -METHODS - load_from_connection - Example in Synopsis above demonstrates the available arguments. For - detailed information on the arguments, see the - DBIx::Class::Schema::Loader::Generic documentation. - - loader - This is an accessor in the generated Schema class for accessing the - DBIx::Class::Schema::Loader::Generic -based loader object that was used - during construction. See the DBIx::Class::Schema::Loader::Generic docs - for more information on the available loader methods there. - -KNOWN BUGS - Aside from relationship definitions being less than ideal in general, - this version is known not to handle the case of multiple relationships - between the same pair of tables. All of the relationship code will be - overhauled on the way to 0.03, at which time that bug will be addressed. - -AUTHOR - Brandon Black, "blblack@gmail.com" - - Based on DBIx::Class::Loader by Sebastian Riedel - - Based upon the work of IKEBE Tomohiro - -THANK YOU - Adam Anderson, Andy Grundman, Autrijus Tang, Dan Kubb, David Naughton, - Randal Schwartz, Simon Flack and all the others who've helped. - -LICENSE - This library is free software; you can redistribute it and/or modify it - under the same terms as Perl itself. - -SEE ALSO - DBIx::Class -