mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
5f64276fb2
modified: storage/connect/array.cpp modified: storage/connect/blkfil.cpp modified: storage/connect/block.h modified: storage/connect/bson.cpp modified: storage/connect/cmgoconn.cpp modified: storage/connect/colblk.cpp modified: storage/connect/domdoc.cpp modified: storage/connect/filamap.cpp modified: storage/connect/filamdbf.cpp modified: storage/connect/filamfix.cpp modified: storage/connect/filamgz.cpp modified: storage/connect/filamtxt.cpp modified: storage/connect/filamvct.cpp modified: storage/connect/filamzip.cpp modified: storage/connect/filter.cpp modified: storage/connect/filter.h modified: storage/connect/fmdlex.c modified: storage/connect/global.h modified: storage/connect/ha_connect.cc modified: storage/connect/javaconn.cpp modified: storage/connect/javaconn.h modified: storage/connect/jdbconn.cpp modified: storage/connect/jmgfam.cpp modified: storage/connect/json.cpp modified: storage/connect/macutil.cpp modified: storage/connect/macutil.h modified: storage/connect/maputil.cpp modified: storage/connect/mycat.cc modified: storage/connect/myconn.cpp modified: storage/connect/myconn.h modified: storage/connect/myutil.cpp modified: storage/connect/odbconn.cpp modified: storage/connect/odbconn.h modified: storage/connect/os.h modified: storage/connect/osutil.c modified: storage/connect/plgdbsem.h modified: storage/connect/plgdbutl.cpp modified: storage/connect/plugutil.cpp modified: storage/connect/rcmsg.c modified: storage/connect/reldef.cpp modified: storage/connect/reldef.h modified: storage/connect/tabdos.cpp modified: storage/connect/tabext.cpp modified: storage/connect/tabfix.cpp modified: storage/connect/tabfmt.cpp modified: storage/connect/tabjdbc.cpp modified: storage/connect/tabmac.cpp modified: storage/connect/tabmac.h modified: storage/connect/tabmul.cpp modified: storage/connect/tabmul.h modified: storage/connect/tabmysql.cpp modified: storage/connect/taboccur.cpp modified: storage/connect/tabodbc.cpp modified: storage/connect/tabpivot.cpp modified: storage/connect/tabrest.cpp modified: storage/connect/tabrest.h modified: storage/connect/tabsys.cpp modified: storage/connect/tabtbl.cpp modified: storage/connect/tabutil.cpp modified: storage/connect/tabvct.cpp modified: storage/connect/tabwmi.cpp modified: storage/connect/tabxcl.cpp modified: storage/connect/tabxml.cpp modified: storage/connect/valblk.cpp modified: storage/connect/value.cpp modified: storage/connect/xindex.cpp modified: storage/connect/xindex.h - Fix Date errors and SSL warnings modified: storage/connect/mysql-test/connect/r/jdbc.result modified: storage/connect/mysql-test/connect/r/jdbc_new.result modified: storage/connect/mysql-test/connect/t/jdbc.test modified: storage/connect/mysql-test/connect/t/jdbc_new.test - Update java source files modified: storage/connect/Mongo2Interface.java modified: storage/connect/Mongo3Interface.java added: storage/connect/Client2.java added: storage/connect/Client3.java added: storage/connect/TestInsert2.java added: storage/connect/TestInsert3.java
50 lines
1.9 KiB
C++
50 lines
1.9 KiB
C++
/*************** TabRest H Declares Source Code File (.H) **************/
|
|
/* Name: tabrest.h Version 1.0 */
|
|
/* (C) Copyright to the author Olivier BERTRAND 2019 */
|
|
/* This file contains the common tabrest classes declares. */
|
|
/***********************************************************************/
|
|
#pragma once
|
|
|
|
#if defined(_WIN32)
|
|
static PCSZ slash = "\\";
|
|
#else // !_WIN32
|
|
static PCSZ slash = "/";
|
|
#define stricmp strcasecmp
|
|
#endif // !_WIN32
|
|
|
|
typedef int(__stdcall* XGETREST) (char*, bool, PCSZ, PCSZ, PCSZ);
|
|
|
|
/***********************************************************************/
|
|
/* Functions used by REST. */
|
|
/***********************************************************************/
|
|
XGETREST GetRestFunction(PGLOBAL g);
|
|
#if defined(REST_SOURCE)
|
|
extern "C" int restGetFile(char* m, bool xt, PCSZ http, PCSZ uri, PCSZ fn);
|
|
#endif // REST_SOURCE
|
|
#if defined(MARIADB)
|
|
PQRYRES RESTColumns(PGLOBAL g, PTOS tp, char* tab, char* db, bool info);
|
|
#endif // !MARIADB
|
|
|
|
|
|
/***********************************************************************/
|
|
/* Restest table. */
|
|
/***********************************************************************/
|
|
class RESTDEF : public TABDEF { /* Table description */
|
|
public:
|
|
// Constructor
|
|
RESTDEF(void) { Tdp = NULL; Http = Uri = Fn = NULL; }
|
|
|
|
// Implementation
|
|
virtual const char *GetType(void) { return "REST"; }
|
|
|
|
// Methods
|
|
virtual bool DefineAM(PGLOBAL g, LPCSTR am, int poff);
|
|
virtual PTDB GetTable(PGLOBAL g, MODE m);
|
|
|
|
protected:
|
|
// Members
|
|
PRELDEF Tdp;
|
|
PCSZ Http; /* Web connection HTTP */
|
|
PCSZ Uri; /* Web connection URI */
|
|
PCSZ Fn; /* The intermediate file name */
|
|
}; // end of class RESTDEF
|