⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sflmysql.h

📁 短小精悍的C语言标准函数库。提供450个以上的可移植的算法和工具代码。
💻 H
字号:
/*  ----------------------------------------------------------------<Prolog>-
    Name:       sflmysql.h
    Title:      MYSQL Database interface - header file
    Package:    SFL

    Written:    1999/09/09  Pascal Antonnaux <pascal@imatix.com>
    Revised:    2000/02/11  Jonathan Schultz

    Synopsis:   Defines structures and constants for the mysql interface.

    Copyright:  Copyright (c) 1991-2000 iMatix Corporation
    License:    This is free software; you can redistribute it and/or modify
                it under the terms of the SFL License Agreement as provided
                in the file LICENSE.TXT.  This software is distributed in
                the hope that it will be useful, but without any warranty.
 ------------------------------------------------------------------</Prolog>-*/

#if defined (DBIO_MYSQL)

#ifndef _SFLMYSQL_INCLUDED
#define _SFLMYSQL_INCLUDED

#include "mysql.h"                      /*  Main MySQL header file           */
#include "mysqld_error.h"               /*  Error numbers                    */


typedef struct {
    COMMON_DBIO_CTX
    MYSQL     *db_handle;
    MYSQL_RES *result ;
    char  *table_name;                  /*  Table name                       */
} MYSQLHANDLE;

#ifdef __cplusplus
extern "C" {
#endif

void      *dbio_mysql_connect    (char *db_name, char *user, char *pwd,
                                  char *host);
void       dbio_mysql_disconnect (void *context);
int        dbio_mysql_commit     (void *context);
int        dbio_mysql_rollback   (void *context);
MYSQLHANDLE *alloc_mysql_handle  (char *table_name, void *context);
void       free_mysql_handle     (MYSQLHANDLE *handle);
void       set_mysql_connection  (void *context);

#ifdef __cplusplus
}
#endif

#endif
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -