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
|
/*-------------------------------------------------------------------------
*
* mysql_query.h
* Foreign-data wrapper for remote MySQL servers
*
* Portions Copyright (c) 2012-2014, PostgreSQL Global Development Group
* Portions Copyright (c) 2004-2024, EnterpriseDB Corporation.
*
* IDENTIFICATION
* mysql_query.h
*
*-------------------------------------------------------------------------
*/
#ifndef MYSQL_QUERY_H
#define MYSQL_QUERY_H
#include "foreign/foreign.h"
#include "lib/stringinfo.h"
#include "nodes/pathnodes.h"
#include "utils/rel.h"
Datum mysql_convert_to_pg(Oid pgtyp, int pgtypmod, mysql_column *column);
void mysql_bind_sql_var(Oid type, int attnum, Datum value, MYSQL_BIND *binds,
bool *isnull);
void mysql_bind_result(Oid pgtyp, int pgtypmod, MYSQL_FIELD *field,
mysql_column *column);
#endif /* MYSQL_QUERY_H */
|