Name

export-database —

ATTRIBUTES

Attribute Pos. Req. Default Description
table Yes
file Yes
type Yes
delete
verify
field
sort
interpolate     0 interpolate output?
hide     0 Hide the tag return value?

DESCRIPTION

BEHAVIOR

This tag does not appear to be affected by, or affect, the rest of Interchange.

EXAMPLES

No examples are available at this time. We do consider this a problem and will try to supply some.

NOTES

AVAILABILITY

export-database is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: code/UI_Tag/export_database.coretag
Lines: 46


# Copyright 2002-2007 Interchange Development Group and others
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.  See the LICENSE file for details.
# 
# $Id: export_database.coretag,v 1.4 2007-03-30 23:40:54 pajamian Exp $

UserTag export-database Order    table file type
UserTag export-database addAttr
UserTag export-database Version  $Revision: 1.4 $
UserTag export-database Routine  <<EOR
sub {
my($table, $file, $type, $opt) = @_;
delete $::Values->{ui_export_database}
  or return undef;
if($opt->{delete} and ! $opt->{verify}) {
  ::logError("attempt to delete field without verify, abort");
  return undef;
}

if(!$file and $type) {
  #::logError("exporting as default type, no file specified");
  undef $type;
}

$Vend::WriteDatabase{$table} = 1;

if(! $opt->{field}) {
  #::logError("exporting:\ntable=$table\nfile=$file\ntype=$type\nsort=$opt->{sort}");
}
elsif($opt->{field} and $opt->{delete}) {
  ::logError("delete field:\ntable=$table\nfield=$opt->{field}\nsort=$opt->{sort}\n");
}
elsif($opt->{field}) {
  ::logError("add field:\ntable=$table\nfield=$opt->{field}\nsort=$opt->{sort}\n");
}
return Vend::Data::export_database(
              $table,
              $file,
              $type,
              $opt,
          );
}
EOR

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!