forked from PocketRent/hhvm-pgsql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pdo_pgsql.h
27 lines (21 loc) · 848 Bytes
/
pdo_pgsql.h
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
#ifndef incl_HPHP_PDO_PGSQL_H_
#define incl_HPHP_PDO_PGSQL_H_
#include "hphp/runtime/base/type-string.h"
#include "hphp/runtime/ext/pdo_driver.h"
namespace HPHP {
struct PDOPgSql : public PDODriver {
PDOPgSql();
virtual SmartPtr<PDOResource> createResourceImpl() override;
virtual SmartPtr<PDOResource> createResourceImpl(const sp_PDOConnection& conn) override;
};
long pdo_attr_lval(const Array& options, int opt, long defaultValue);
String pdo_attr_strval(const Array& options, int opt, const char *def);
enum {
PDO_PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT = PDO_ATTR_DRIVER_SPECIFIC,
PDO_PGSQL_ATTR_DISABLE_PREPARES,
};
const StaticString
s_PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT("PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT "),
s_PGSQL_ATTR_DISABLE_PREPARES("PGSQL_ATTR_DISABLE_PREPARES");
}
#endif