[Bioperl-guts-l] bioperl-db/scripts/biosql load_ontology.pl, 1.11, 1.12 load_seqdatabase.pl, 1.24, 1.25

Hilmar Lapp lapp at dev.open-bio.org
Sat Jun 2 21:57:05 EDT 2007


Update of /home/repository/bioperl/bioperl-db/scripts/biosql
In directory dev.open-bio.org:/tmp/cvs-serv10347/scripts/biosql

Modified Files:
	load_ontology.pl load_seqdatabase.pl 
Log Message:
Adding support for schemas in PostgreSQL. Though I think this should work,
it is not tested yet.


Index: load_ontology.pl
===================================================================
RCS file: /home/repository/bioperl/bioperl-db/scripts/biosql/load_ontology.pl,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** load_ontology.pl	24 Sep 2005 04:02:25 -0000	1.11
--- load_ontology.pl	3 Jun 2007 01:57:03 -0000	1.12
***************
*** 107,110 ****
--- 107,117 ----
  being used.
  
+ =item --schema schemaname
+ 
+ The schema under which the BioSQL tables reside in the database. For
+ Oracle and MySQL this is synonymous with the user, and won't have an
+ effect. PostgreSQL since v7.4 supports schemas as the namespace for
+ collections of tables within a database.
+ 
  =item --initrc paramfile
  
***************
*** 361,364 ****
--- 368,372 ----
  my $driver;
  my $dbpass;
+ my $schema;
  my $format = 'goflat';
  my $fmtargs = '';
***************
*** 409,412 ****
--- 417,421 ----
  		     'dbpass:s'    => \$dbpass,
                       'dsn=s'       => \$dsn,
+                      'schema=s'    => \$schema,
  		     'format:s'    => \$format,
  		     'fmtargs=s'   => \$fmtargs,
***************
*** 506,509 ****
--- 515,519 ----
  			     -pass       => $dbpass,
                               -dsn        => $dsn,
+                              -schema     => $schema,
                               -initrc     => $initrc,
  			     );

Index: load_seqdatabase.pl
===================================================================
RCS file: /home/repository/bioperl/bioperl-db/scripts/biosql/load_seqdatabase.pl,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** load_seqdatabase.pl	19 Jan 2006 21:34:29 -0000	1.24
--- load_seqdatabase.pl	3 Jun 2007 01:57:03 -0000	1.25
***************
*** 87,90 ****
--- 87,97 ----
  being used.
  
+ =item --schema schemaname
+ 
+ The schema under which the BioSQL tables reside in the database. For
+ Oracle and MySQL this is synonymous with the user, and won't have an
+ effect. PostgreSQL since v7.4 supports schemas as the namespace for
+ collections of tables within a database.
+ 
  =item --initrc paramfile
  
***************
*** 348,351 ****
--- 355,359 ----
  my $driver;
  my $dbpass;
+ my $schema;
  my $format = 'genbank';
  my $fmtargs = '';
***************
*** 396,399 ****
--- 404,408 ----
                       'dbpass=s'       => \$dbpass,
                       'dsn=s'          => \$dsn,
+                      'schema=s'       => \$schema,
                       'format=s'       => \$format,
                       'fmtargs=s'      => \$fmtargs,
***************
*** 508,511 ****
--- 517,521 ----
                               -pass       => $dbpass,
                               -dsn        => $dsn,
+                              -schema     => $schema,
                               -initrc     => $initrc,
                               );



More information about the Bioperl-guts-l mailing list