source: MML/trunk/applications/database/mym/utilities/dbcurr.m @ 4

Last change on this file since 4 was 4, checked in by zhangj, 10 years ago

Initial import--MML version from SOLEIL@2013

File size: 363 bytes
Line 
1function[dbase] = dbcurr
2% DBCURR    Show current MySQL database
3% INPUTS  : None
4% OUTPUTS : DBASE, string, empty if no database open
5% EXAMPLE : currdb = dbcurr;
6% AUTHOR  : Dimitri Shvorob, dimitri.shvorob@vanderbilt.edu, 8/7/06
7if ~mycheck
8   error('No MySQL instance detected. Use MYOPEN to connect.')
9else
10   dbase = char(mym('select database()'));
11end   
Note: See TracBrowser for help on using the repository browser.