-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibex_ado_connection.h
executable file
·62 lines (46 loc) · 3.25 KB
/
libex_ado_connection.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/* -------------------------------------------------------------------------- */
/* (c) ali@balarabe.com [libex_ado_connection.h] */
/* -------------------------------------------------------------------------- */
#if !defined INCLUDED_LIBEX_ADO_CONNECTION_H && LX_PLATFORM_WIN32
#define INCLUDED_LIBEX_ADO_CONNECTION_H
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0501 /* Windows XP or later */
#include "libex.h"
/* -------------------------------------------------------------------------- */
LX_NAMESPACE(lx)
typedef struct {
void* ado;
} lx_Ado; /* lx_Ado */
/* -------------------------------------------------------------------------- */
/* Constructor / Destructor: */
LX_PUBLIC lx_Ado lx_Ado_openSqlServerDb( /*C*/
lx_chars_t sql_server_name_, /*-*/
lx_chars_t db_name_, /*-*/
lx_chars_t user_name_, /*-*/
lx_chars_t user_password_ ); /*-*/
LX_PUBLIC lx_Ado lx_Ado_openJetDb( /*C*/
lx_chars_t db_name_, /*-*/
lx_chars_t jet_db_password_, /*-*/
lx_chars_t user_name_, /*-*/
lx_chars_t user_password_, /*-*/
lx_chars_t jet_sys_db_name_ ); /*-*/
LX_PUBLIC LX_CL lx_bool lx_Ado_free( lx_Ado* object_ ); /*D*/
/* -------------------------------------------------------------------------- */
/* Properties: */
LX_PUBLIC lx_chars_t lx_Ado_connectionString( lx_Ado object_ ); /*P*/
/* -------------------------------------------------------------------------- */
/* Methods: */
LX_PUBLIC int lx_Ado_execute( /*M*/
lx_Ado object_, /*-*/
lx_chars_t sql_statements_, /*-*/
LX_CL lx_bool immediate_, /*-*/
LX_CL lx_bool ignore_lock_errors_ ); /*-*/
LX_PUBLIC int lx_Ado_execute2( /*M*/
lx_Ado object_, /*-*/
lx_chars_t sql_statements_ ); /*-*/
LX_PUBLIC lx_new_chars_t lx_Ado_readCsv( /*M*/
lx_Ado object_, /*-*/
lx_chars_t sql_statement_, /*-*/
LX_CL lx_bool include_column_names_ ); /*-*/
LX_END_NAMESPACE /*lx*/
#endif /*eof*/