Name

export — export a database to a text file

ATTRIBUTES

Attribute Pos. Req. Default Description
table | database | base Yes Yes Table name to export
field The column to add or delete
file Filename to export to. Note that NoAbsolute directive and other conditions may affect the range of possible locations
force false Force database export, even if NoExportExternal or NoExport is enabled?
sort Sorting option in format of sort_field:sort_option.
type Output format
delete Instead of adding, delete column specified by the field attribute? (In effect only if verify attribute is enabled)
verify
interpolate     0 interpolate output?
hide     0 Hide the tag return value?

DESCRIPTION

The tag exports named database to a text file.

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 is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: code/SystemTag/export.coretag
Lines: 16


# 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.coretag,v 1.5 2007-03-30 23:40:49 pajamian Exp $

UserTag export              Order        table
UserTag export              addAttr
UserTag export              attrAlias    base table
UserTag export              attrAlias    database table
UserTag export              PosNumber    1
UserTag export              Version      $Revision: 1.5 $
UserTag export              MapRoutine   Vend::Interpolate::export

Source: lib/Vend/Interpolate.pm
Lines: 1904

sub export {
my ($table, $opt, $text) = @_;
if($opt->{delete}) {
  undef $opt->{delete} unless $opt->{verify};
}
#::logDebug("exporting " . join (",", @{$opt}{ qw/table file type field delete/ }));
my $status = Vend::Data::export_database(
    @{$opt}{ qw/table file type/ }, $opt,
  );
return $status unless $opt->{hide};
return '';
}

Source: lib/Vend/Interpolate.pm
Lines: 1891

sub tag_export {
my ($args, $opt, $text) = @_;
$opt->{base} = $opt->{table} || $opt->{database} || undef
  unless defined $opt->{base};
unless (defined $opt->{base}) {
  @{$opt}{ qw/base file type/ } = split /\s+/, $args;
}
if($opt->{delete}) {
  undef $opt->{delete} unless $opt->{verify};
}
#::logDebug("exporting " . join (",", @{$opt}{ qw/base file type field delete/ }));
my $status = Vend::Data::export_database(
    @{$opt}{ qw/base file type/ }, $opt,
  );
return $status unless $opt->{hide};
return '';
}

AUTHORS

Interchange Development Group

SEE ALSO

import(7ic)

DocBook! Interchange!