.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "DBIx::Class::Storage::DBI::SQLAnywhere 3pm" .TH DBIx::Class::Storage::DBI::SQLAnywhere 3pm "2022-05-21" "perl v5.34.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" DBIx::Class::Storage::DBI::SQLAnywhere \- Driver for SQL Anywhere .SH "DESCRIPTION" .IX Header "DESCRIPTION" This class implements autoincrements for \s-1SQL\s0 Anywhere and provides DBIx::Class::InflateColumn::DateTime support and support for the \&\f(CW\*(C`uniqueidentifier\*(C'\fR type (via DBIx::Class::Storage::DBI::SQLAnywhere::Cursor.) .PP You need the \f(CW\*(C`DBD::SQLAnywhere\*(C'\fR driver that comes with the \s-1SQL\s0 Anywhere distribution, \fB\s-1NOT\s0\fR the one on \s-1CPAN.\s0 It is usually under a path such as: .PP .Vb 1 \& /opt/sqlanywhere11/sdk/perl .Ve .PP Recommended connect_info settings: .PP .Vb 1 \& on_connect_call => \*(Aqdatetime_setup\*(Aq .Ve .SH "METHODS" .IX Header "METHODS" .SS "connect_call_datetime_setup" .IX Subsection "connect_call_datetime_setup" Used as: .PP .Vb 1 \& on_connect_call => \*(Aqdatetime_setup\*(Aq .Ve .PP In connect_info to set the date and timestamp formats (as temporary options for the session) for use with DBIx::Class::InflateColumn::DateTime. .PP The \f(CW\*(C`TIMESTAMP\*(C'\fR data type supports up to 6 digits after the decimal point for second precision. The full precision is used. .PP The \f(CW\*(C`DATE\*(C'\fR data type supposedly stores hours and minutes too, according to the documentation, but I could not get that to work. It seems to only store the date. .PP You will need the DateTime::Format::Strptime module for inflation to work. .SH "MAXIMUM CURSORS" .IX Header "MAXIMUM CURSORS" A DBIx::Class application can use a lot of cursors, due to the usage of prepare_cached. .PP The default cursor maximum is \f(CW50\fR, which can be a bit too low. This limit can be turned off (or increased) by the \s-1DBA\s0 by executing: .PP .Vb 2 \& set option max_statement_count = 0 \& set option max_cursor_count = 0 .Ve .PP Highly recommended. .SH "FURTHER QUESTIONS?" .IX Header "FURTHER QUESTIONS?" Check the list of additional \s-1DBIC\s0 resources. .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" This module is free software copyright by the DBIx::Class (\s-1DBIC\s0) authors. You can redistribute it and/or modify it under the same terms as the DBIx::Class library.