mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 14:19:10 -04:00
DBD::SQLite: added short explanation of SQLite's pragma
This commit is contained in:
parent
9a3151e321
commit
52b7337ed8
1 changed files with 7 additions and 4 deletions
|
@ -737,10 +737,13 @@ This is somewhat weird, but works anyway.
|
||||||
Since SQLite 3.6.19 (released on Oct 14, 2009; bundled with
|
Since SQLite 3.6.19 (released on Oct 14, 2009; bundled with
|
||||||
DBD::SQLite 1.26_05), foreign key constraints are supported (though
|
DBD::SQLite 1.26_05), foreign key constraints are supported (though
|
||||||
with some limitations). See L<http://www.sqlite.org/foreignkeys.html>
|
with some limitations). See L<http://www.sqlite.org/foreignkeys.html>
|
||||||
for details. Note that this feature is not enabled by default. You
|
for details. Though SQLite does NOT enable this feature by default yet (for backward compatibility), DBD::SQLite enables it internally. If you don't want this feature, issue a pragma to disable the feature.
|
||||||
need to issue a pragma explicitly, or set C<sqlite_foreign_keys>
|
|
||||||
attribute to the database handle (explicitly, or as a connection
|
$dbh->do("PRAGMA foreign_keys = OFF");
|
||||||
attribute. See below).
|
|
||||||
|
=head2 Pragma
|
||||||
|
|
||||||
|
SQLite has a set of "Pragma"s to modifiy its operation or to query for its internal data. These are specific to SQLite and are not likely to work with other DBD libraries, but you may find some of these are quite useful. DBD::SQLite actually sets some (like C<foreign_keys> above) for you when you connect to a database. See L<http://www.sqlite.org/pragma.html> for details.
|
||||||
|
|
||||||
=head2 Performance
|
=head2 Performance
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue