FOSSology  4.4.0
Open Source License Compliance by Open Source Software
write.c File Reference
#include "buckets.h"
Include dependency graph for write.c:

Go to the source code of this file.

Functions

FUNCTION int writeBuckets (PGconn *pgConn, int pfile_pk, int uploadtree_pk, int *bucketList, int agent_pk, int nomosagent_pk, int bucketpool_pk)
 Write bucket results to either db (bucket_file, bucket_container) or stdout. More...
 

Variables

int debug
 

Detailed Description

Write bucket to either db or stdout

Definition in file write.c.

Function Documentation

◆ writeBuckets()

FUNCTION int writeBuckets ( PGconn *  pgConn,
int  pfile_pk,
int  uploadtree_pk,
int *  bucketList,
int  agent_pk,
int  nomosagent_pk,
int  bucketpool_pk 
)

Write bucket results to either db (bucket_file, bucket_container) or stdout.

Parameters
pgConnpostgresql connection
pfile_pk
uploadtree_pk
bucketListnull terminated array of bucket_pks that match this pfile
agent_pk
bucketpool_pkbucketpool id
Returns
0=success, -1 failure

Definition at line 29 of file write.c.

Variable Documentation

◆ debug

int debug
extern

Print debug messages

Definition at line 57 of file buckets.c.