FreeTDS API: src/apps/freebcp.h Source File

FreeTDS API

Loading...
Searching...
No Matches
freebcp.h
1enum states
2{
3 GET_NEXTARG,
4 GET_MAXERRORS,
5 GET_FORMATFILE,
6 GET_ERRORFILE,
7 GET_FIRSTROW,
8 GET_LASTROW,
9 GET_BATCHSIZE,
10 GET_FIELDTERM,
11 GET_ROWTERM,
12 GET_USER,
13 GET_PASS,
14 GET_INTERFACESFILE,
15 GET_SERVER,
16 GET_DISPLAYCHARSET,
17 GET_DATAFILECHARSET,
18 GET_LANGUAGE,
19 GET_PACKETSIZE,
20 GET_CLIENTCHARSET,
21 GET_TEXTSIZE,
22 GET_SYBASEDIR,
23 GET_FROMLABEL,
24 GET_TOLABEL,
25 GET_HINT
26};
27
28typedef struct pd
29{
30 char *dbobject;
31 char dbdirection[10];
32 DBINT direction;
33 char *hostfilename;
34 char *formatfile;
35 char *errorfile;
36 char *interfacesfile;
37 int firstrow;
38 int lastrow;
39 int batchsize;
40 int maxerrors;
41 int textsize;
42 char *fieldterm;
43 int fieldtermlen;
44 char *rowterm;
45 int rowtermlen;
46 char *user;
47 char *pass;
48 char *server;
49 char *dbname;
50 char *hint;
51 char *options;
52 char *charset;
53 int packetsize;
54 bool fflag;
55 bool nflag;
56 bool cflag;
57 bool tflag;
58 bool rflag;
59 bool Sflag;
60 bool Aflag;
61 bool Eflag;
62 bool ignoreDefaults; /* Really insert a NULL even if default value defined */
63 char *inputfile;
64 char *outputfile;
65}
66BCPPARAMDATA;
pd
Definition datacopy.c:64