Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

awora.c File Reference

#include "awora.h"
#include "llt.h"

Functions

 __attribute__ ((constructor))
void aw_ora_connect (aw_ora_cinfo_t *cinfo, aw_ora_state_t *state, aw_logger_t *logger)
 Get a db connection, from pool if exists or create a db connection.

sword aw_ora_describe_define (Lda_Def *lda, Cda_Def *cda, struct describe *desc, struct define *def)
 Stolen from cdemo2.c and modified.

void aw_ora_disconnect (aw_ora_cinfo_t *cinfo, aw_ora_state_t *state, aw_logger_t *logger, int32_t close)
 Release the db connection back to the pool, if 'close' is non-zero close the connection.

void aw_ora_disconnect_all (aw_ora_cinfo_t *cinfo, aw_ora_state_t *state, aw_logger_t *logger)
 Release the ALL db connections back to the pool with same login.

byte_t * aw_ora_error (Lda_Def *lda, Cda_Def *cursor, text *msg, sword msgsize)
 Fill string with oracle error message.

int32_t aw_ora_initialized (void)
 Non-zero if lib is initialize.


Function Documentation

__attribute__ (  (constructor)   ) 
 

void aw_ora_connect (  aw_ora_cinfo_t *  cinfo,
aw_ora_state_t *  state,
aw_logger_t *  logger
) 
 

Get a db connection, from pool if exists or create a db connection.

aw_ora_connect

Parameters:
cinfo Connection info
state Connection state info
logger Logger for messages

sword aw_ora_describe_define (  Lda_Def *  lda,
Cda_Def *  cda,
struct describe *  desc,
struct define *  def
) 
 

Stolen from cdemo2.c and modified.

aw_ora_describe_define

void aw_ora_disconnect (  aw_ora_cinfo_t *  cinfo,
aw_ora_state_t *  state,
aw_logger_t *  logger,
int32_t  close
) 
 

Release the db connection back to the pool, if 'close' is non-zero close the connection.

aw_ora_disconnect

Parameters:
cinfo Connection info
state Connection state info
logger Logger for messages
close Close connection if non-zero

void aw_ora_disconnect_all (  aw_ora_cinfo_t *  cinfo,
aw_ora_state_t *  state,
aw_logger_t *  logger
) 
 

Release the ALL db connections back to the pool with same login.

aw_ora_disconnect_all

Parameters:
cinfo Connection info
state Connection state info
logger Logger for messages

byte_t* aw_ora_error (  Lda_Def *  lda,
Cda_Def *  cursor,
text *  msg,
sword  msgsize
) 
 

Fill string with oracle error message.

aw_ora_error

int32_t aw_ora_initialized (  void   ) 
 

Non-zero if lib is initialize.

aw_ora_initialized

Aware 0.11.1 Copyright (C) 1998-2005 Russell Leighton (russ@elegant-software.com)