Changeset 12686


Ignore:
Timestamp:
2006-09-06T14:13:37+12:00 (18 years ago)
Author:
kjdon
Message:

small changes to hopefully make it clearer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/etc/packages/example.dbi

    r10924 r12686  
    1313
    1414
    15 # debugging. Uncomment this line if you want extra information printed
     15# debugging. Set to 0 if you don't want extra information printed
    1616# out during greenstone's import process.
    1717#
     
    2626# However, Encoding is important, for converting data to utf8
    2727#
     28
    2829$language = "en";
    2930$encoding = "iso_8859_1";
     
    3637# For mysql, it might look like "DBI:mysql:database=<database>;host=localhost"
    3738# For the CSV (comma-separated values text-file) backend, try something like
    38 #   'DBI:CSV:f_dir=/path/to/file;csv_quote_char=\";csv_sep_char=    '
     39#   'DBI:CSV:f_dir=/path/to/directory/containing/csvfile;csv_quote_char=\";csv_sep_char=    '
    3940# with an embedded tab character for tab-separated instead of the
    40 # default comma-separated.$db='';
     41# default comma-separated.
     42
     43$db='';
    4144
    4245# If you need a username and password to connect to this database,
     
    4851# DBI does not allow you to use multiple SQL statements at once. So if
    4952# you want to execute two statements (for example, to prep the data by
    50 # creating a temporary table), uncomment and use this as the first statement.
     53# creating a temporary table), uncomment and use this as the first statement.
     54 
    5155#$sql_query_prime = 'CREATE TEMP TABLE foo AS
    5256# SELECT t1.ID, t2.name
     
    6569# SELECTS but not joins).
    6670
     71$sql_query='';
    6772
    6873# a map of database field names to Greenstone metadata field names.
     
    8287#             );
    8388
     89%db_to_greenstone_fields=(
     90
     91              );
    8492
    8593# finally, you can declare subroutines here to post-process the fields
Note: See TracChangeset for help on using the changeset viewer.