Sha256: cd691c0f9552fdc9c8727bd78053531bc0adfb27b75272a9f179e08e6767b48c

Contents?: true

Size: 1.05 KB

Versions: 31

Compression:

Stored size: 1.05 KB

Contents

#ifndef TINYTDS_CLIENT_H
#define TINYTDS_CLIENT_H

void init_tinytds_client();

#define ERROR_MSG_SIZE 1024

typedef struct {
  short int is_set;
  int cancel;
  char error[ERROR_MSG_SIZE];
  char source[ERROR_MSG_SIZE];
  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

31 entries across 31 versions & 2 rubygems

Version Path
tiny_tds-2.1.0.pre3-x86-mingw32 ext/tiny_tds/client.h
tiny_tds-2.1.0.pre3-x64-mingw32 ext/tiny_tds/client.h
tiny_tds-2.1.0.pre3 ext/tiny_tds/client.h
tiny_tds-2.1.0.pre2-x86-mingw32 ext/tiny_tds/client.h
tiny_tds-2.1.0.pre2-x64-mingw32 ext/tiny_tds/client.h
tiny_tds-2.1.0.pre2 ext/tiny_tds/client.h
tiny_tds-2.1.0.pre1-x86-mingw32 ext/tiny_tds/client.h
tiny_tds-2.1.0.pre1-x64-mingw32 ext/tiny_tds/client.h
tiny_tds-2.1.0.pre1 ext/tiny_tds/client.h
tiny_tds-2.0.0-x86-mingw32 ext/tiny_tds/client.h
tiny_tds-2.0.0-x64-mingw32 ext/tiny_tds/client.h
tiny_tds-2.0.0 ext/tiny_tds/client.h
tiny_tds-2.0.0.pre1-x64-mingw32 ext/tiny_tds/client.h
tiny_tds-2.0.0.pre1-x86-mingw32 ext/tiny_tds/client.h
tiny_tds-2.0.0.pre1 ext/tiny_tds/client.h
tiny_tds-1.3.0-x86-mingw32 ext/tiny_tds/client.h
tiny_tds-1.3.0-x64-mingw32 ext/tiny_tds/client.h
tiny_tds-1.3.0 ext/tiny_tds/client.h
tiny_tds-1.2.0-x64-mingw32 ext/tiny_tds/client.h
tiny_tds-1.2.0-x86-mingw32 ext/tiny_tds/client.h