1DBSchema::DBD::SQLite(3U)ser Contributed Perl DocumentatiDoBnSchema::DBD::SQLite(3)
2
3
4
6 DBIx::DBSchema::DBD::SQLite - SQLite native driver for DBIx::DBSchema
7
9 use DBI; use DBIx::DBSchema;
10
11 $dbh = DBI->connect('dbi:SQLite:tns_service_name', 'user','pass');
12 $schema = new_native DBIx::DBSchema $dbh;
13
15 This module implements a SQLite-native driver for DBIx::DBSchema.
16
18 Jesse Vincent <jesse@bestpractical.com>
19
21 columns CLASS DBI_DBH TABLE
22 Given an active DBI database handle, return a listref of listrefs
23 (see perllol), each containing six elements: column name, column
24 type, nullability, column length, column default, and a field
25 reserved for driver-specific use (which for sqlite is whether this
26 col is a primary key)
27
28 primary_key CLASS DBI_DBH TABLE
29 Given an active DBI database handle, return the primary key for the
30 specified table.
31
32 unique CLASS DBI_DBH TABLE
33 Given an active DBI database handle, return a hashref of unique
34 indices. The keys of the hashref are index names, and the values
35 are arrayrefs which point a list of column names for each. See
36 "HASHES OF LISTS" in perldsc and DBIx::DBSchema::ColGroup.
37
38 index CLASS DBI_DBH TABLE
39 Given an active DBI database handle, return a hashref of (non-
40 unique) indices. The keys of the hashref are index names, and the
41 values are arrayrefs which point a list of column names for each.
42 See "HASHES OF LISTS" in perldsc and DBIx::DBSchema::ColGroup.
43
44
45
46perl v5.32.0 2020-07-28 DBSchema::DBD::SQLite(3)