8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 20:43:04 +01:00
firebird-mirror/src/dsql/dsql_proto.h

83 lines
2.6 KiB
C
Raw Normal View History

2001-05-23 15:26:42 +02:00
/*
* PROGRAM: Dynamic SQL runtime support
* MODULE: dsql_proto.h
* 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
#include "fb_string.h"
2001-05-23 15:26:42 +02:00
#ifdef __cplusplus
extern "C" {
#endif
namespace Jrd {
class Attachment;
class jrd_tra;
}
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**,
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*,
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
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
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
ISC_STATUS dsql8_free_statement(ISC_STATUS*, dsql_req**,
2001-05-23 15:26:42 +02:00
USHORT);
ISC_STATUS dsql8_insert(ISC_STATUS*, dsql_req**, USHORT,
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**,
USHORT, const TEXT*, USHORT, USHORT,
2003-10-05 08:33:56 +02:00
const SCHAR*, USHORT, SCHAR*);
ISC_STATUS dsql8_set_cursor(ISC_STATUS*, dsql_req**, const TEXT*,
2001-05-23 15:26:42 +02:00
USHORT);
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,
Jrd::Attachment* jrd_attachment_handle,
Jrd::jrd_tra* jrd_transaction_handle,
const Firebird::string& sql_operator);
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-09-26 12:50:59 +02:00
#endif // DSQL_DSQL_PROTO_H