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

📄 connectiondtor.c

📁 适合于Unix/Linux下的一个持久数据库连接池
💻 C
字号:
// Copyright (c) 1999-2001  David Muse// See the file COPYING for more information#include <sqlrelay/sqlrclient.h>sqlrconnection::~sqlrconnection() {	// unless it was already ended or suspended, end the session	if (!endsessionsent && !suspendsessionsent) {		endSession();	}	// deallocate id	delete[] id;	// deallocate dbversion	delete[] dbversion;	// deallocate bindformat	delete[] bindformat;	// deallocate copied references	if (copyrefs) {		delete[] server;		delete[] listenerunixport;		delete[] user;		delete[] password;	}	// detach all cursors attached to this client	sqlrcursor	*currentcursor=firstcursor;	while (currentcursor) {		firstcursor=currentcursor;		currentcursor=currentcursor->next;		firstcursor->sqlrc=NULL;	}	if (debug) {		debugPreStart();		debugPrint("Deallocated connection\n");		debugPreEnd();	}}

⌨️ 快捷键说明

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