/usr/lib/emboss/include/ensdatabaseconnection.h is in emboss-lib 6.3.1-6ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | #ifdef __cplusplus
extern "C"
{
#endif
#ifndef ensdatabaseconnection_h
#define ensdatabaseconnection_h
#include "ajax.h"
/* @data EnsPDatabaseconnection ***********************************************
**
** Ensembl Database Connection.
**
** Holds information to connect to a particular SQL database on a
** relational database management system (RDBMS) instance.
**
** @alias EnsSDatabaseconnection
** @alias EnsODatabaseconnection
**
** @attr Sqlconnection [AjPSqlconnection] AJAX SQL Connection
** @attr UserName [AjPStr] User name
** @attr Password [AjPStr] Password
** @attr HostName [AjPStr] Host name or IP address
** @attr HostPort [AjPStr] Host TCP/IP port
** @attr SocketFile [AjPStr] UNIX socket file
** @attr DatabaseName [AjPStr] SQL database name
** @attr AutoDisconnect [AjBool] Automatic disconnections
** @attr SqlconnectionClient [AjESqlconnectionClient] AJAX SQL
** Connection client
** @attr Use [ajuint] Use counter
** @attr Padding [ajuint] Padding to alignment boundary
**
** @@
******************************************************************************/
typedef struct EnsSDatabaseconnection
{
AjPSqlconnection Sqlconnection;
AjPStr UserName;
AjPStr Password;
AjPStr HostName;
AjPStr HostPort;
AjPStr SocketFile;
AjPStr DatabaseName;
AjBool AutoDisconnect;
AjESqlconnectionClient SqlconnectionClient;
ajuint Use;
ajuint Padding;
} EnsODatabaseconnection;
#define EnsPDatabaseconnection EnsODatabaseconnection*
/*
** Prototype definitions
*/
EnsPDatabaseconnection ensDatabaseconnectionNew(AjESqlconnectionClient client,
AjPStr user,
AjPStr password,
AjPStr host,
AjPStr port,
AjPStr socketfile,
AjPStr database);
EnsPDatabaseconnection ensDatabaseconnectionNewC(EnsPDatabaseconnection dbc,
AjPStr database);
EnsPDatabaseconnection ensDatabaseconnectionNewRef(EnsPDatabaseconnection dbc);
EnsPDatabaseconnection ensDatabaseconnectionNewUrl(const AjPStr url);
void ensDatabaseconnectionDel(EnsPDatabaseconnection* Pdbc);
AjPSqlconnection ensDatabaseconnectionGetSqlconnection(
const EnsPDatabaseconnection dbc);
AjPStr ensDatabaseconnectionGetUserName(const EnsPDatabaseconnection dbc);
AjPStr ensDatabaseconnectionGetPassword(const EnsPDatabaseconnection dbc);
AjPStr ensDatabaseconnectionGetHostName(const EnsPDatabaseconnection dbc);
AjPStr ensDatabaseconnectionGetHostPort(const EnsPDatabaseconnection dbc);
AjPStr ensDatabaseconnectionGetSocketFile(const EnsPDatabaseconnection dbc);
AjPStr ensDatabaseconnectionGetDatabaseName(const EnsPDatabaseconnection dbc);
AjBool ensDatabaseconnectionGetAutoDisconnect(
const EnsPDatabaseconnection dbc);
AjESqlconnectionClient ensDatabaseconnectionGetSqlconnectionClient(
const EnsPDatabaseconnection dbc);
AjBool ensDatabaseconnectionSetAutoDisconnect(EnsPDatabaseconnection dbc,
AjBool autodisconnect);
AjBool ensDatabaseconnectionMatch(const EnsPDatabaseconnection dbc1,
const EnsPDatabaseconnection dbc2);
AjBool ensDatabaseconnectionConnect(EnsPDatabaseconnection dbc);
AjBool ensDatabaseconnectionDisconnect(EnsPDatabaseconnection dbc);
AjBool ensDatabaseconnectionIsConnected(const EnsPDatabaseconnection dbc);
AjPSqlstatement ensDatabaseconnectionSqlstatementNew(
EnsPDatabaseconnection dbc,
const AjPStr statement);
AjBool ensDatabaseconnectionSqlstatementDel(
EnsPDatabaseconnection dbc,
AjPSqlstatement *Psqls);
AjBool ensDatabaseconnectionEscapeC(EnsPDatabaseconnection dbc,
char **Ptxt,
const AjPStr str);
AjBool ensDatabaseconnectionEscapeS(EnsPDatabaseconnection dbc,
AjPStr *Pstr,
const AjPStr str);
AjBool ensDatabaseconnectionTrace(const EnsPDatabaseconnection dbc,
ajuint level);
/*
** End of prototype definitions
*/
#endif /* ensdatabaseconnection_h */
#ifdef __cplusplus
}
#endif
|