Changeset 485
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r484 r485 4769 4769 ## DNSDB::export() 4770 4770 # Export the DNS database, or a part of it 4771 # Takes database handle, export type,optional arguments depending on type4771 # Takes a string indicating the export type, plus optional arguments depending on type 4772 4772 # Writes zone data to targets as appropriate for type 4773 4773 sub export { 4774 my $ dbh= shift;4774 my $self = shift; 4775 4775 my $target = shift; 4776 4776 4777 4777 if ($target eq 'tiny') { 4778 __export_tiny($dbh,@_);4778 $self->__export_tiny(@_); 4779 4779 } 4780 4780 # elsif ($target eq 'foo') { 4781 # __export_foo( $dbh,@_);4781 # __export_foo(@_); 4782 4782 #} 4783 4783 # etc … … 4788 4788 ## DNSDB::__export_tiny 4789 4789 # Internal sub to implement tinyDNS (compatible) export 4790 # Takes database handle,filehandle to write export to, optional argument(s)4790 # Takes filehandle to write export to, optional argument(s) 4791 4791 # to determine which data gets exported 4792 4792 sub __export_tiny { 4793 my $dbh = shift; 4793 my $self = shift; 4794 my $dbh = $self->{dbh}; 4794 4795 my $datafile = shift; 4795 4796 -
trunk/export.pl
r468 r485 31 31 open TINYDATA, ">tinydata"; 32 32 33 export($dbh,'tiny',*TINYDATA);33 $dnsdb->export('tiny', *TINYDATA);
Note:
See TracChangeset
for help on using the changeset viewer.