File: ur-define-datasource-sqlite.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 (73 lines) | stat: -rw-r--r-- 1,287 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73


=pod

=head1 NAME

ur define datasource sqlite - Add a SQLite data source to the current namespace.



=head1 VERSION

This document describes ur define datasource sqlite version 0.29.

=head1 SYNOPSIS

ur define datasource sqlite [--nosingleton] [--dsid=?] [--server=?] [DSNAME]

  cd Acme

  ur define datasource sqlite --dsname MyDB1 
  # writes Acme::DataSource::MyDB1 to work with Acme/DataSource/MyDB1.sqlite3
  
  ur define datasource sqlite --dsname MyDB2 --server /var/lib/acmeapp/mydb2.sqlite3
  # writes Acme::DataSource::MyDB2 to work with the specified sqlite file


=head1 REQUIRED ARGUMENTS

=over


=item nosingleton  I<Boolean>

Created data source should not inherit from UR::Singleton (defalt is that it will)

Default value 'false' (--nonosingleton) if not specified

=item nonosingleton  I<Boolean>

Make nosingleton 'false'


=back

=head1 OPTIONAL ARGUMENTS

=over


=item dsid  I<Text>

The full class name to give this data source.

=item server  I<String>

"server" attribute for this data source, such as a database name

=item DSNAME  I<Text>

The distinctive part of the class name for this data source.  Will be prefixed with the namespace then '::DataSource::'.


=back

=head1 DESCRIPTION:

  Add a SQLite data source to the current namespace.



=cut