Sha256: 6f351b5e0774048f194dd128ad8ff115e82e9b1e083d2819fbad61a05604da83

Contents?: true

Size: 1022 Bytes

Versions: 60

Compression:

Stored size: 1022 Bytes

Contents

#ifndef TINYTDS_CLIENT_H
#define TINYTDS_CLIENT_H

void init_tinytds_client();

typedef struct {
  short int is_set;
  int cancel;
  char error[1024];
  char source[1024];
  int severity;
  int dberr;
  int oserr;
} tinytds_errordata;

typedef struct {
  short int closed;
  short int timing_out;
  short int dbsql_sent;
  short int dbsqlok_sent;
  RETCODE dbsqlok_retcode;
  short int dbcancel_sent;
  short int nonblocking;
  tinytds_errordata nonblocking_error;
} tinytds_client_userdata;

typedef struct {
  LOGINREC *login;
  RETCODE return_code;
  DBPROCESS *client;
  short int closed;
  VALUE charset;
  tinytds_client_userdata *userdata;
  const char *identity_insert_sql;
  rb_encoding *encoding;
} tinytds_client_wrapper;

VALUE rb_tinytds_raise_error(DBPROCESS *dbproc, int cancel, const char *error, const char *source, int severity, int dberr, int oserr);

// Lib Macros

#define GET_CLIENT_USERDATA(dbproc) \
  tinytds_client_userdata *userdata = (tinytds_client_userdata *)dbgetuserdata(dbproc);


#endif

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
tiny_tds-0.9.5.rc.2 ext/tiny_tds/client.h
tiny_tds-0.9.5.rc.1-x64-mingw32 ext/tiny_tds/client.h
tiny_tds-0.9.5.rc.1-x86-mingw32 ext/tiny_tds/client.h
tiny_tds-0.9.5.rc.1 ext/tiny_tds/client.h
tiny_tds-0.9.5.beta.12-x86-mingw32 ext/tiny_tds/client.h
tiny_tds-0.9.5.beta.12-x64-mingw32 ext/tiny_tds/client.h
tiny_tds-0.9.5.beta.12 ext/tiny_tds/client.h
tiny_tds-0.9.5.beta.11-x86-mingw32 ext/tiny_tds/client.h
tiny_tds-0.9.5.beta.11-x64-mingw32 ext/tiny_tds/client.h
tiny_tds-0.9.5.beta.11 ext/tiny_tds/client.h
tiny_tds-0.9.5.beta.10-x86-mingw32 ext/tiny_tds/client.h
tiny_tds-0.9.5.beta.10-x64-mingw32 ext/tiny_tds/client.h
tiny_tds-0.9.5.beta.10 ext/tiny_tds/client.h
tiny_tds-0.9.5.beta.9-x86-mingw32 ext/tiny_tds/client.h
tiny_tds-0.9.5.beta.9-x64-mingw32 ext/tiny_tds/client.h
tiny_tds-0.9.5.beta.9 ext/tiny_tds/client.h
tiny_tds-0.9.5.beta.8-x64-mingw32 ext/tiny_tds/client.h
tiny_tds-0.9.5.beta.8-x86-mingw32 ext/tiny_tds/client.h
tiny_tds-0.9.5.beta.8 ext/tiny_tds/client.h
tiny_tds-0.9.5.beta.7-x86-mingw32 ext/tiny_tds/client.h