configDBAccess

PURPOSE ^

CONFIGDBACCESS Configure data base access parameters for glider processing.

SYNOPSIS ^

function db_access = configDBAccess()

DESCRIPTION ^

CONFIGDBACCESS  Configure data base access parameters for glider processing.

  Syntax:
    DB_ACCESS = CONFIGDBACCESS()

  Description:
    DB_ACCESS = CONFIGDBACCESS() should return a struct with the access
    parameters for the data base to be used during the glider processing
    as needed by the function GETDEPLOYMENTINFODB.

  Notes:
    Edit this file filling in the parameters of your data base.
    Once configured, this file will contain private data, so you should not
    make it public.

  Examples:
    db_access = configDBAccess()

  See also:
    GETDEPLOYMENTINFODB

  Authors:
    Joan Pau Beltran  <joanpau.beltran@socib.cat>

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

configDBAccess.m

SOURCE CODE ^

0001 function db_access = configDBAccess()
0002 %CONFIGDBACCESS  Configure data base access parameters for glider processing.
0003 %
0004 %  Syntax:
0005 %    DB_ACCESS = CONFIGDBACCESS()
0006 %
0007 %  Description:
0008 %    DB_ACCESS = CONFIGDBACCESS() should return a struct with the access
0009 %    parameters for the data base to be used during the glider processing
0010 %    as needed by the function GETDEPLOYMENTINFODB.
0011 %
0012 %  Notes:
0013 %    Edit this file filling in the parameters of your data base.
0014 %    Once configured, this file will contain private data, so you should not
0015 %    make it public.
0016 %
0017 %  Examples:
0018 %    db_access = configDBAccess()
0019 %
0020 %  See also:
0021 %    GETDEPLOYMENTINFODB
0022 %
0023 %  Authors:
0024 %    Joan Pau Beltran  <joanpau.beltran@socib.cat>
0025 
0026 %  Copyright (C) 2013-2016
0027 %  ICTS SOCIB - Servei d'observacio i prediccio costaner de les Illes Balears
0028 %  <http://www.socib.es>
0029 %
0030 %  This program is free software: you can redistribute it and/or modify
0031 %  it under the terms of the GNU General Public License as published by
0032 %  the Free Software Foundation, either version 3 of the License, or
0033 %  (at your option) any later version.
0034 %
0035 %  This program is distributed in the hope that it will be useful,
0036 %  but WITHOUT ANY WARRANTY; without even the implied warranty of
0037 %  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0038 %  GNU General Public License for more details.
0039 %
0040 %  You should have received a copy of the GNU General Public License
0041 %  along with this program.  If not, see <http://www.gnu.org/licenses/>.
0042 
0043   error(nargchk(0, 0, nargin, 'struct'));
0044 
0045   db_access.server = 'jdbc:postgresql://mydb.myportal.mydomain:5433/my_data_base';
0046   db_access.name = 'my_data_base';
0047   db_access.user = 'myself';
0048   db_access.pass = 'top_secret';
0049   db_access.driver = 'org.postgresql.Driver';
0050 
0051 end

Generated on Fri 06-Oct-2017 10:47:42 by m2html © 2005