File: ur-define-db.pod

package info (click to toggle)
libur-perl 0.470%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,184 kB
  • sloc: perl: 61,813; javascript: 255; xml: 108; sh: 13; makefile: 9
file content (57 lines) | stat: -rw-r--r-- 937 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57


=pod

=head1 NAME

ur define db - add a data source to the current namespace



=head1 VERSION

This document describes ur define db version 0.29.

=head1 SYNOPSIS

ur define db URI NAME

ur define db dbi:SQLite:/some/file.db Db1

ur define db me@dbi:mysql:myserver MainDb

ur define db me@dbi:Oracle:someserver ProdDb
ur define db me@dbi:Oracle:someserver~schemaname BigDb 

ur define db me@dbi:Pg:prod  Db1
ur define db me@dbi:Pg:dev   Testing::Db1 # alternate for "Testing" (arbitrary) context
ur define db me@dbi:Pg:stage Staging::Db1 # alternate for "Staging" (arbitrary) context



=head1 REQUIRED ARGUMENTS

=over


=item URI  I<Text>

a DBI connect string like dbi:mysql:someserver or user/passwd@dbi:Oracle:someserver~defaultns

=item NAME  I<Text>

the name for this data source (used for class naming)

Default value 'Db1' if not specified


=back

=head1 DESCRIPTION:

  add a data source to the current namespace



=cut