2001-05-23 15:26:42 +02:00
|
|
|
/*
|
|
|
|
* PROGRAM: Dynamic SQL runtime support
|
|
|
|
* MODULE: dsql_proto.h
|
2003-09-29 14:43:14 +02:00
|
|
|
* DESCRIPTION: Prototype Header file for dsql.cpp
|
2001-05-23 15:26:42 +02:00
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Interbase Public
|
|
|
|
* License Version 1.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy
|
|
|
|
* of the License at http://www.Inprise.com/IPL.html
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an
|
|
|
|
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
|
|
|
|
* or implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
|
|
|
*
|
|
|
|
* The Original Code was created by Inprise Corporation
|
|
|
|
* and its predecessors. Portions created by Inprise Corporation are
|
|
|
|
* Copyright (C) Inprise Corporation.
|
|
|
|
*
|
|
|
|
* All Rights Reserved.
|
|
|
|
* Contributor(s): ______________________________________.
|
|
|
|
*/
|
|
|
|
|
2003-09-26 12:50:59 +02:00
|
|
|
#ifndef DSQL_DSQL_PROTO_H
|
|
|
|
#define DSQL_DSQL_PROTO_H
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2004-03-20 15:57:40 +01:00
|
|
|
#include "fb_string.h"
|
|
|
|
|
2001-05-23 15:26:42 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2004-03-20 15:57:40 +01:00
|
|
|
namespace Jrd {
|
|
|
|
class Attachment;
|
|
|
|
class jrd_tra;
|
|
|
|
}
|
|
|
|
|
2004-03-18 06:56:06 +01:00
|
|
|
class dsql_req;
|
|
|
|
|
2004-05-03 01:06:37 +02:00
|
|
|
ISC_STATUS dsql8_allocate_statement(ISC_STATUS*, FB_API_HANDLE*, dsql_req**);
|
|
|
|
ISC_STATUS dsql8_execute(ISC_STATUS*, FB_API_HANDLE*, dsql_req**,
|
2003-11-28 07:48:34 +01:00
|
|
|
USHORT, const SCHAR*, USHORT, USHORT,
|
2003-10-05 08:33:56 +02:00
|
|
|
SCHAR*, USHORT, SCHAR*, USHORT,
|
|
|
|
USHORT, SCHAR*);
|
2004-05-03 01:06:37 +02:00
|
|
|
ISC_STATUS dsql8_execute_immediate(ISC_STATUS*, FB_API_HANDLE*, FB_API_HANDLE*,
|
2003-11-28 07:48:34 +01:00
|
|
|
USHORT, const TEXT*, USHORT,
|
|
|
|
USHORT, const SCHAR*, USHORT,
|
2003-10-05 08:33:56 +02:00
|
|
|
USHORT, SCHAR*, USHORT,
|
|
|
|
SCHAR*, USHORT, USHORT,
|
|
|
|
SCHAR*);
|
2001-05-23 15:26:42 +02:00
|
|
|
#ifdef SCROLLABLE_CURSORS
|
2004-03-18 06:56:06 +01:00
|
|
|
ISC_STATUS dsql8_fetch(ISC_STATUS*, dsql_req**, USHORT, const SCHAR*,
|
2003-10-05 08:33:56 +02:00
|
|
|
USHORT, USHORT, SCHAR*, USHORT, SLONG);
|
2001-05-23 15:26:42 +02:00
|
|
|
#else
|
2004-03-18 06:56:06 +01:00
|
|
|
ISC_STATUS dsql8_fetch(ISC_STATUS*, dsql_req**, USHORT, const SCHAR*,
|
2003-10-05 08:33:56 +02:00
|
|
|
USHORT, USHORT, SCHAR*);
|
2004-03-07 08:58:55 +01:00
|
|
|
#endif // SCROLLABLE_CURSORS
|
2004-03-18 06:56:06 +01:00
|
|
|
ISC_STATUS dsql8_free_statement(ISC_STATUS*, dsql_req**,
|
2001-05-23 15:26:42 +02:00
|
|
|
USHORT);
|
2004-03-18 06:56:06 +01:00
|
|
|
ISC_STATUS dsql8_insert(ISC_STATUS*, dsql_req**, USHORT,
|
2003-11-28 07:48:34 +01:00
|
|
|
const SCHAR*, USHORT, USHORT, const SCHAR*);
|
2004-05-03 01:06:37 +02:00
|
|
|
ISC_STATUS dsql8_prepare(ISC_STATUS*, FB_API_HANDLE*, dsql_req**,
|
2003-11-28 07:48:34 +01:00
|
|
|
USHORT, const TEXT*, USHORT, USHORT,
|
2003-10-05 08:33:56 +02:00
|
|
|
const SCHAR*, USHORT, SCHAR*);
|
2004-03-18 06:56:06 +01:00
|
|
|
ISC_STATUS dsql8_set_cursor(ISC_STATUS*, dsql_req**, const TEXT*,
|
2001-05-23 15:26:42 +02:00
|
|
|
USHORT);
|
2004-03-18 06:56:06 +01:00
|
|
|
ISC_STATUS dsql8_sql_info(ISC_STATUS*, dsql_req**, USHORT,
|
2003-10-05 08:33:56 +02:00
|
|
|
const SCHAR*, USHORT, SCHAR*);
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2003-10-05 08:33:56 +02:00
|
|
|
ISC_STATUS callback_execute_immediate(ISC_STATUS* status,
|
2004-03-20 15:57:40 +01:00
|
|
|
Jrd::Attachment* jrd_attachment_handle,
|
|
|
|
Jrd::jrd_tra* jrd_transaction_handle,
|
|
|
|
const Firebird::string& sql_operator);
|
2002-12-16 16:38:26 +01:00
|
|
|
|
|
|
|
|
2001-05-23 15:26:42 +02:00
|
|
|
#ifdef __cplusplus
|
2004-03-07 08:58:55 +01:00
|
|
|
} // extern "C"
|
2001-05-23 15:26:42 +02:00
|
|
|
#endif
|
|
|
|
|
2003-10-03 04:00:40 +02:00
|
|
|
|
2003-09-26 12:50:59 +02:00
|
|
|
#endif // DSQL_DSQL_PROTO_H
|
2003-09-29 14:43:14 +02:00
|
|
|
|