/Users/deen/code/yugabyte-db/src/yb/yql/pggate/pg_env.h
Line | Count | Source (jump to first uncovered line) |
1 | | //-------------------------------------------------------------------------------------------------- |
2 | | // Copyright (c) YugaByte, Inc. |
3 | | // |
4 | | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
5 | | // in compliance with the License. You may obtain a copy of the License at |
6 | | // |
7 | | // http://www.apache.org/licenses/LICENSE-2.0 |
8 | | // |
9 | | // Unless required by applicable law or agreed to in writing, software distributed under the License |
10 | | // is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
11 | | // or implied. See the License for the specific language governing permissions and limitations |
12 | | // under the License. |
13 | | //-------------------------------------------------------------------------------------------------- |
14 | | |
15 | | // TODO(neil) PgEnv defines the interface for the environment where PostgreSQL engine is running. |
16 | | // Although postgres libraries might handle most of the environment variables, YugaByte libraries |
17 | | // might need to deal with some of them. This class is provided for that reason. This class can |
18 | | // be removed if YugaByte layers, especially DocDB, do not handle any custom values for ENV. |
19 | | |
20 | | |
21 | | #ifndef YB_YQL_PGGATE_PG_ENV_H_ |
22 | | #define YB_YQL_PGGATE_PG_ENV_H_ |
23 | | |
24 | | #include <memory> |
25 | | |
26 | | namespace yb { |
27 | | namespace pggate { |
28 | | |
29 | | //------------------------------------------------------------------------------------------------ |
30 | | |
31 | | class PgEnv { |
32 | | public: |
33 | | // Public types and constants. |
34 | | typedef std::unique_ptr<PgEnv> UniPtr; |
35 | | typedef std::unique_ptr<const PgEnv> UniPtrConst; |
36 | | |
37 | | typedef std::shared_ptr<PgEnv> SharedPtr; |
38 | | typedef std::shared_ptr<const PgEnv> SharedPtrConst; |
39 | | |
40 | | // Constructor. |
41 | 0 | PgEnv() { } |
42 | 0 | virtual ~PgEnv() { } |
43 | | }; |
44 | | |
45 | | |
46 | | } // namespace pggate |
47 | | } // namespace yb |
48 | | |
49 | | #endif // YB_YQL_PGGATE_PG_ENV_H_ |