Changeset 12686 for trunk/gsdl/etc/packages
- Timestamp:
- 2006-09-06T14:13:37+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/etc/packages/example.dbi
r10924 r12686 13 13 14 14 15 # debugging. Uncomment this line if youwant extra information printed15 # debugging. Set to 0 if you don't want extra information printed 16 16 # out during greenstone's import process. 17 17 # … … 26 26 # However, Encoding is important, for converting data to utf8 27 27 # 28 28 29 $language = "en"; 29 30 $encoding = "iso_8859_1"; … … 36 37 # For mysql, it might look like "DBI:mysql:database=<database>;host=localhost" 37 38 # 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= ' 39 40 # with an embedded tab character for tab-separated instead of the 40 # default comma-separated.$db=''; 41 # default comma-separated. 42 43 $db=''; 41 44 42 45 # If you need a username and password to connect to this database, … … 48 51 # DBI does not allow you to use multiple SQL statements at once. So if 49 52 # 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 51 55 #$sql_query_prime = 'CREATE TEMP TABLE foo AS 52 56 # SELECT t1.ID, t2.name … … 65 69 # SELECTS but not joins). 66 70 71 $sql_query=''; 67 72 68 73 # a map of database field names to Greenstone metadata field names. … … 82 87 # ); 83 88 89 %db_to_greenstone_fields=( 90 91 ); 84 92 85 93 # finally, you can declare subroutines here to post-process the fields
Note:
See TracChangeset
for help on using the changeset viewer.