forked from tada/pljava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBackend.h
More file actions
51 lines (43 loc) · 1.33 KB
/
Copy pathBackend.h
File metadata and controls
51 lines (43 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* Copyright (c) 2004-2020 Tada AB and other contributors, as listed below.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the The BSD 3-Clause License
* which accompanies this distribution, and is available at
* http://opensource.org/licenses/BSD-3-Clause
*
* Contributors:
* Tada AB - Thomas Hallgren
* PostgreSQL Global Development Group
* Chapman Flack
*/
#ifndef __pljava_Backend_h
#define __pljava_Backend_h
#include "pljava/Function.h"
#ifdef __cplusplus
extern "C" {
#endif
/*****************************************************************
* The Backend contains the call handler, initialization of the
* PL/Java, access to config variables, and logging.
*
* @author Thomas Hallgren
*****************************************************************/
#if PG_VERSION_NUM < 100000
extern bool integerDateTimes;
#endif
int Backend_setJavaLogLevel(int logLevel);
#ifdef PG_GETCONFIGOPTION
#error The macro PG_GETCONFIGOPTION needs to be renamed.
#endif
#if PG_VERSION_NUM >= 90100
#define PG_GETCONFIGOPTION(key) GetConfigOption(key, false, true)
#elif PG_VERSION_NUM >= 90000
#define PG_GETCONFIGOPTION(key) GetConfigOption(key, true)
#else
#define PG_GETCONFIGOPTION(key) GetConfigOption(key)
#endif
#ifdef __cplusplus
}
#endif
#endif /* !__pljava_Backend_h */