File: README

package info (click to toggle)
libdbd-ram-perl 0.072-8
  • links: PTS
  • area: main
  • in suites: woody
  • size: 144 kB
  • ctags: 55
  • sloc: perl: 1,111; makefile: 34
file content (89 lines) | stat: -rw-r--r-- 2,853 bytes parent folder | download | duplicates (2)
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
README FILE FOR PERL MODULE -- DBD::RAM

WHY USE IT?

     This module lets you quickly create and test databases 
     using SQL (Structured Query Language) and DBI 
     (the Perl Database Interface).

     Beginners can learn some basics of SQL and DBI without
     needing to install or learn a database management system
     like mySQL or Oracle.

     Advanced users can prototype new databases; test queries
     on existing data; combine data from multiple DBI-accessible
     databases or various kinds of storage such as fixed-width 
     records, comma-separated values files, .ini files, XML files,
     and other flat (ascii) files; pull in arrays and hashes from 
     other scripts; and use it when in-memory processing is an 
     advantage.

WHAT ELSE DO I NEED?

     * An operating system that can run DBI
       (unix, linux, mac, windows, many others).

     * Perl and these modules:  DBI, DBD::File, SQL::Statement.
       (DBD::File is part of the DBD::CSV distibution)

     Windows users: get Perl and the modules at 
     www.activestate.com.

     Others: get perl at www.perl.com and the modules at 
     www.cpan.org.

HOW DO I INSTALL IT?

     1.  Install Perl and the modules DBI, DBD::CSV, and 
         SQL::Statement (if you don't already have them).

     2.  Unpack the compressed files.
         (DBD-RAM-version.tar.gz or DBD-RAM-version.zip)

     3a. If you are not familiar with the standard Perl
         makefile method, you can simply copy the file 
         RAM.pm into your DBD directory.
  
     3b. If you are familiar with the standard Perl make 
         installation, just do as always (perl Makefile.PL; 
         make; make test; make install) this should also 
         work with dmake or nmake. 

HOW DO I USE IT?

     First you might like to try this simple script which 
     creates a database and inserts the string "hello new world"
     into a record  and then uses SQL to retrieve the record and 
     print it:

     #!perl -w
     use strict;
     use DBI;
     my $dbh = DBI->connect('DBI:RAM:');
     $dbh->do("CREATE TABLE table1 ( message TEXT )");
     $dbh->do("INSERT INTO table1 VALUES ('Hello new world!')");
     print $dbh->selectrow_array("SELECT message FROM table1");


WHERE CAN I GET MORE INFO?

     After installing the module, type "perldoc DBD::RAM" at 
     the command prompt, or just read the documentation at 
     the bottom of the RAM.pm file.

     For help on the use of DBD::RAM, see the DBI users 
     mailing list:

          http://www.isc.org/dbi-lists.html

     For general information on DBI see

          http://www.symbolstone.org/technology/perl/DBI

WHO DUNNIT?

  Jeff Zucker <jeff@vpservices.com>

  Feel free to email me comments and suggestions, but please
  post questions requiring a response to the dbi-users mailing
  list(see above).