Sha256: 8016874eaa449753e2eea8c56418c913e9d8589fd41cd7106eb67dac1524e6c3

Contents?: true

Size: 1.29 KB

Versions: 6

Compression:

Stored size: 1.29 KB

Contents

#include <oci.h>


typedef struct _EMBULK_OUTPUT_ORACLE_OCI_CONTEXT {
	OCIEnv     *env;
	OCIDirPathCtx *dp;
	OCISvcCtx *svc;
	OCIError *err;
	OCIDirPathColArray *dpca;
	OCIDirPathStream *dpstr;
	char *buffer;
	FILE *csv;
	char message[512];
} EMBULK_OUTPUT_ORACLE_OCI_CONTEXT;

typedef struct _EMBULK_OUTPUT_ORACLE_OCI_COL_DEF {
	const char *name;
	ub4 type;
	ub4 size;
	const char *dateFormat;
} EMBULK_OUTPUT_ORACLE_OCI_COL_DEF;


int embulk_output_oracle_prepareDirPathCtx(EMBULK_OUTPUT_ORACLE_OCI_CONTEXT *context, const char *dbName, const char *userName, const char *password);

int embulk_output_oracle_prepareDirPathStream(EMBULK_OUTPUT_ORACLE_OCI_CONTEXT *context, const char *tableName, short charsetId, EMBULK_OUTPUT_ORACLE_OCI_COL_DEF *colDefs);
	
int embulk_output_oracle_loadBuffer(EMBULK_OUTPUT_ORACLE_OCI_CONTEXT *context, EMBULK_OUTPUT_ORACLE_OCI_COL_DEF *colDefs, const char *buffer, int rowCount);
	
int embulk_output_oracle_loadCSV(EMBULK_OUTPUT_ORACLE_OCI_CONTEXT *context, EMBULK_OUTPUT_ORACLE_OCI_COL_DEF *colDefs, const char *csvFileName);

int embulk_output_oracle_commitDirPath(EMBULK_OUTPUT_ORACLE_OCI_CONTEXT *context);
	
int embulk_output_oracle_rollbackDirPath(EMBULK_OUTPUT_ORACLE_OCI_CONTEXT *context);
	
void embulk_output_oracle_freeDirPathHandles(EMBULK_OUTPUT_ORACLE_OCI_CONTEXT *context);

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
embulk-output-oracle-0.4.3 src/main/cpp/common/dir-path-load.h
embulk-output-oracle-0.4.2 src/main/cpp/common/dir-path-load.h
embulk-output-oracle-0.4.0 src/main/cpp/common/dir-path-load.h
embulk-output-oracle-0.3.0 src/main/cpp/common/dir-path-load.h
embulk-output-oracle-0.2.3 src/main/cpp/common/dir-path-load.h
embulk-output-oracle-0.2.2 src/main/cpp/common/dir-path-load.h