| 1 | # perl | ||
| 2 | # vim:ts=4:sw=4:ai:aw | ||
| 3 | |||
| 4 | { | ||
| 5 | # | ||
| 6 | # Options allow any changes, additions, overloading, or removal of | ||
| 7 | # "/option" values or function. Options is executate when the | ||
| 8 | # configuration is loaded. | ||
| 9 | # | ||
| 10 | 4 | 'options' => [ | |
| 11 | [ 'editor' => qq{vim} ], | ||
| 12 | # [ 'prompt' => qq{connect--} ], | ||
| 13 | [ 'sqlpath' => join( ':', q{.}, qq{$ENV{HOME}/sql}) ], | ||
| 14 | [ 'tmp_dir' => qq{/tmp} ], | ||
| 15 | [ 'tmp_file'=> qq{dbish$$.sql} ], | ||
| 16 | ], | ||
| 17 | # | ||
| 18 | # Plug in modules during different stages of the application | ||
| 19 | # | ||
| 20 | 'plug-ins' => { | ||
| 21 | 'pre-init' => undef, | ||
| 22 | 'post-init' => [ | ||
| 23 | DBI::Shell::Timing | ||
| 24 | , DBI::Shell::Completion | ||
| 25 | , DBI::Shell::Spool | ||
| 26 | ], | ||
| 27 | 'pre-connect' => undef, | ||
| 28 | 'post-connect' => { | ||
| 29 | 'non-database' => [ DBI::Shell::SQLMinus ], | ||
| 30 | 'database' => { | ||
| 31 | 'ADO' => { | ||
| 32 | 'options' => [ [ 'prompt' => qq{ado--} ] ] | ||
| 33 | }, | ||
| 34 | 'AnyData' => { | ||
| 35 | 'plugin' => [ DBI::Shell::AnyData ], | ||
| 36 | 'options' => [ [ 'prompt' => qq{anydata--} ] ] | ||
| 37 | }, | ||
| 38 | 'mysql' => { | ||
| 39 | 'options' => [ [ 'prompt' => qq{mysql--} ] ] | ||
| 40 | }, | ||
| 41 | 'ODBC' => undef, | ||
| 42 | 'Oracle' => undef, | ||
| 43 | }, | ||
| 44 | 'options' => [ [ 'format' => qq{sqlm} ] ], | ||
| 45 | }, | ||
| 46 | }, | ||
| 47 | }; | ||
| 48 | |||
| 49 | # | ||
| 50 | # $Log: dbish_config,v $ | ||
| 51 | # Revision 11.91 2002/12/13 23:44:56 tlowery | ||
| 52 | # Fixed version numbers | ||
| 53 | # | ||
| 54 | # Revision 11.6 2002/10/28 02:49:57 tlowery | ||
| 55 | # Release 11.6 | ||
| 56 | # | ||
| 57 | # Revision 11.5 2002/04/17 15:03:16 tlowery | ||
| 58 | # Added the begining of column_info support. | ||
| 59 | # | ||
| 60 | # Revision 11.4 2002/04/09 10:52:12 tlowery | ||
| 61 | # Continued to improve support for formatting. Added more tests. | ||
| 62 | # | ||
| 63 | # Revision 11.3 2002/01/02 03:14:59 tlowery | ||
| 64 | # Modified to include new formats. | ||
| 65 | # | ||
| 66 | # Changed displaymode to format. | ||
| 67 | # | ||
| 68 | # Cleaned up a number of "undefined" messages. | ||
| 69 | # | ||
| 70 | # Revision 11.2 2001/10/29 15:56:00 tlowery | ||
| 71 | # Added timing tests. | ||
| 72 | # Added go with empty buffer gets the last command and executes. | ||
| 73 | # Added support for negative numbers with get. | ||
| 74 | # Fixed undef warnings from histories. | ||
| 75 | # | ||
| 76 | # Revision 1.10 2001/08/30 12:46:17 tlowery | ||
| 77 | # Added "options" call to dbish_config | ||
| 78 | # | ||
| 79 | # Revision 1.9 2001/05/31 04:21:32 tlowery | ||
| 80 | # Continue to modify to support SQLMinus | ||
| 81 | # | ||
| 82 | # Revision 1.8 2001/05/29 22:59:53 tlowery | ||
| 83 | # *** empty log message *** | ||
| 84 | # | ||
| 85 | # Revision 1.7 2001/04/10 13:35:32 tlowery | ||
| 86 | # Tested the ability to comment out parts of the config file. | ||
| 87 | # | ||
| 88 | # Revision 1.6 2001/04/07 04:01:58 tlowery | ||
| 89 | # | ||
| 90 | # Added more options to configuration file. | ||
| 91 | # | ||
| 92 | # Revision 1.5 2001/04/01 17:04:20 tlowery | ||
| 93 | # Added cvs tag. | ||
| 94 | # | ||
| 95 | # |