1 package FS::part_export::domain_sql;
2 use base qw( FS::part_export::sql_Common );
9 tie my %options, 'Tie::IxHash', %{__PACKAGE__->sql_options};
11 tie my %postfix_transport_map, 'Tie::IxHash',
14 my $postfix_transport_map =
15 join('\n', map "$_ $postfix_transport_map{$_}",
16 keys %postfix_transport_map );
17 tie my %postfix_transport_static, 'Tie::IxHash',
18 'transport' => 'virtual:',
20 my $postfix_transport_static =
21 join('\n', map "$_ $postfix_transport_static{$_}",
22 keys %postfix_transport_static );
25 'svc' => 'svc_domain',
26 'desc' => 'Real time export of domains to SQL databases '.
28 'options' => \%options,
31 Export domains (svc_domain records) to SQL databases. Currently this is a
32 simple export with a default for Postfix, but it can be extended for other
35 <BR><BR>Use these buttons for useful presets:
37 <LI><INPUT TYPE="button" VALUE="postfix_transport" onClick='
38 this.form.table.value = "transport";
39 this.form.schema.value = "$postfix_transport_map";
40 this.form.static.value = "$postfix_transport_static";
41 this.form.primary_key.value = "domain";
47 # inherit everything else from sql_Common