1SQL::Translator::ProducUesre:r:MCyoSnQtLr(i3b)uted PerlSDQoLc:u:mTernatnastliaotnor::Producer::MySQL(3)
2
3
4

NAME

6       SQL::Translator::Producer::MySQL - MySQL-specific producer for
7       SQL::Translator
8

SYNOPSIS

10       Use via SQL::Translator:
11
12         use SQL::Translator;
13
14         my $t = SQL::Translator->new( parser => '...', producer => 'MySQL', '...' );
15         $t->translate;
16

DESCRIPTION

18       This module will produce text output of the schema suitable for MySQL.
19       There are still some issues to be worked out with syntax differences
20       between MySQL versions 3 and 4 ("SET foreign_key_checks," character
21       sets for fields, etc.).
22

ARGUMENTS

24       This producer takes a single optional producer_arg "mysql_version",
25       which provides the desired version for the target database. By default
26       MySQL v3 is assumed, and statements pertaining to any features
27       introduced in later versions (e.g. CREATE VIEW) are not produced.
28
29       Valid version specifiers for "mysql_version" are listed here
30
31   Table Types
32       Normally the tables will be created without any explicit table type
33       given and so will use the MySQL default.
34
35       Any tables involved in foreign key constraints automatically get a
36       table type of InnoDB, unless this is overridden by setting the
37       "mysql_table_type" extra attribute explicitly on the table.
38
39   Extra attributes.
40       The producer recognises the following extra attributes on the Schema
41       objects.
42
43       field.list
44           Set the list of allowed values for Enum fields.
45
46       field.binary, field.unsigned, field.zerofill
47           Set the MySQL field options of the same name.
48
49       field.renamed_from, table.renamed_from
50           Use when producing diffs to indicate that the current table/field
51           has been renamed from the old name as given in the attribute value.
52
53       table.mysql_table_type
54           Set the type of the table e.g. 'InnoDB', 'MyISAM'. This will be
55           automatically set for tables involved in foreign key constraints if
56           it is not already set explicitly. See "Table Types".
57
58           Please note that the "ENGINE" option is the preferred method of
59           specifying the MySQL storage engine to use, but this method still
60           works for backwards compatibility.
61
62       table.mysql_charset, table.mysql_collate
63           Set the tables default character set and collation order.
64
65       field.mysql_charset, field.mysql_collate
66           Set the fields character set and collation order.
67

SEE ALSO

69       SQL::Translator, http://www.mysql.com/.
70

AUTHORS

72       darren chamberlain <darren@cpan.org>, Ken Youens-Clark
73       <kclark@cpan.org>.
74
75
76
77perl v5.28.0                      2015-06-25SQL::Translator::Producer::MySQL(3)
Impressum