1
#ifndef __SGE_SPOOLING_DATABASE_H
2
#define __SGE_SPOOLING_DATABASE_H
3
/*___INFO__MARK_BEGIN__*/
4
/*************************************************************************
6
* The Contents of this file are made available subject to the terms of
7
* the Sun Industry Standards Source License Version 1.2
9
* Sun Microsystems Inc., March, 2001
12
* Sun Industry Standards Source License Version 1.2
13
* =================================================
14
* The contents of this file are subject to the Sun Industry Standards
15
* Source License Version 1.2 (the "License"); You may not use this file
16
* except in compliance with the License. You may obtain a copy of the
17
* License at http://gridengine.sunsource.net/Gridengine_SISSL_license.html
19
* Software provided under this License is provided on an "AS IS" basis,
20
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
21
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
22
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
23
* See the License for the specific provisions governing your rights and
24
* obligations concerning the Software.
26
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
28
* Copyright: 2001 by Sun Microsystems, Inc.
30
* All Rights Reserved.
32
************************************************************************/
33
/*___INFO__MARK_END__*/
37
#include "spool/sge_spooling_utilities.h"
39
/****** spool/--Spooling-Database ************************************
42
* database pooling - spooling of data into databases
45
* The module provides utility functions
46
* for data input/output into databases.
49
* spool/postgres/--Spooling-Postgres
50
****************************************************************************
54
spool_database_initialize(lList **answer_list, lListElem *rule);
57
spool_database_check_version(lList **answer_list, const char *version);
60
spool_database_get_handle(const lListElem *rule);
62
spool_database_set_handle(const lListElem *rule, void *handle);
65
spool_database_set_history(const lListElem *rule, bool value);
67
spool_database_get_history(const lListElem *rule);
69
const char *spool_database_get_table_name(const spooling_field *fields);
70
const char *spool_database_get_id_field(const spooling_field *fields);
71
const char *spool_database_get_parent_id_field(const spooling_field *fields);
72
const char *spool_database_get_valid_field(const spooling_field *fields);
73
const char *spool_database_get_created_field(const spooling_field *fields);
74
const char *spool_database_get_deleted_field(const spooling_field *fields);
75
int spool_database_get_key_nm(const spooling_field *fields);
78
spool_database_get_fields(const lListElem *rule, sge_object_type type);
81
spool_database_get_sub_fields(spooling_field *fields, int nm);
84
spool_database_store_id(lList **answer_list, const spooling_field *fields,
85
const char *parent_key, const char *key,
86
const char *id, bool tag);
89
spool_database_get_id(lList **answer_list, const spooling_field *fields,
90
const char *parent_key, const char *key, bool tag);
93
spool_database_delete_id(lList **answer_list,
94
const spooling_field *fields,
95
const char *parent_key,
99
spool_database_tag_id(lList **answer_list, const spooling_field *fields,
100
const char *parent_key, const char *key, bool value);
103
spool_database_get_id_list(lList **answer_list,
104
const spooling_field *fields,
105
const char *parent_key);
108
spool_database_object_changed(lList **answer_list, const lListElem *object,
109
const spooling_field *fields);
111
#endif /* __SGE_SPOOLING_DATABASE_H */