IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
connect_to_cells.m
Go to the documentation of this file.
1 %>@ingroup ioio sheware
2 %>@file
3 %>@brief Connects to database specified in the DB global
4 %>
6 function connect_to_cells()
7 db_assert();
8 global DB;
9 mym('open', DB.host, DB.user, DB.pass);
10 mym('use', DB.name);
11 if mym('status') == 0
12  irverbose(sprintf('Connected to DB: "%s"', DB.name), 3);
13 else
14  irerror('Cannot connect to DB.');
15 end
function irverbose(in s, in level)
function irerror(in s)
function connect_to_cells()
function db_assert()
function irquery(in varargin)