#include "bulkInsert_Tutorial_structs.h"
#include "bulkInsert_Tutorial_cat.h"
#include <stdio.h>
#include <stdlib.h>
int32_t main_bulkInsertTutorial (int32_t argc, const char *const *argv)
{
{
{
{
}
{
{
rc =
}
{
db, tables,
RDM_LEN (tables), NULL, 0, NULL);
}
{
{
}
else
{
}
}
{
db, tables,
RDM_LEN (tables), NULL, 0, NULL);
}
{
BULKINSERT insertions[3];
int16_t tzPST = -420;
uint32_t counter;
insertions[0].id = rdmDate;
insertions[1].id = rdmDate;
insertions[2].id = rdmDate;
db, TABLE_BULKINSERT, insertions, sizeof (insertions),
for (counter = 0;
counter++)
{
char outBuffer[100];
NULL);
printf ("Date Inserted: %s\n", outBuffer);
}
{
}
else
{
}
}
{
}
{
{
{
BULKINSERT recS;
cursor, &recS, sizeof (recS), NULL);
{
char outBuffer[100];
sizeof (outBuffer), NULL);
printf ("Date Retrieved: %s\n", outBuffer);
}
}
{
}
}
}
}
}
}
{
printf (
"There was an error in this Tutorial (%s - %s)\n",
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}