Holds information needed for transaction log translation using the DBTools library.
typedef struct a_translate_log
Member name | Type | Description |
---|---|---|
ansi_sql |
a_bit_field |
Set TRUE to produce ANSI standard SQL transactions. Set TRUE by dbtran -s option. |
chronological_order |
a_bit_field |
Reserved; set to FALSE. |
comment_trigger_trans |
a_bit_field |
Set TRUE to include trigger-generated transactions as comments. Set TRUE by dbtran -z option. |
confirmrtn |
MSG_CALLBACK |
Address of a confirmation request callback routine or NULL. |
connectparms |
const char * |
Parameters needed to connect to the database. They take the form of connection strings, such as the following: "UID=DBA;PWD=sql;DBF=demo.db". The database server would be started by the connection string START parameter. For example: "START=c:\SQLAny12\bin32\dbeng12.exe". A full example connection string including the START parameter: "UID=DBA;PWD=sql;DBF=demo.db;START=c:\SQLAny12\bin32\dbeng12.exe". |
debug |
a_bit_field |
Reserved; set to FALSE. |
debug_dump_char |
a_bit_field |
Reserved; set to FALSE. |
debug_dump_hex |
a_bit_field |
Reserved; set to FALSE. |
debug_dump_size |
a_sql_uint32 |
Reserved, use 0. |
debug_page_offsets |
a_bit_field |
Reserved; set to FALSE. |
debug_sql_remote |
a_bit_field |
Reserved; set to FALSE. |
encryption_key |
const char * |
The encryption key for the database file. Equivalent to dbtran -ek option. |
errorrtn |
MSG_CALLBACK |
Address of an error message callback routine or NULL. |
extra_audit |
a_bit_field |
Reserved; set to FALSE. |
force_chaining |
a_bit_field |
Reserved; set to FALSE. |
force_recovery |
a_bit_field |
Reserved; set to FALSE. |
generate_reciprocals |
a_bit_field |
Reserved; set to FALSE. |
include_audit |
a_bit_field |
Reserved; set to FALSE. |
include_destination_sets |
const char * |
Reserved, use NULL. |
include_publications |
const char * |
Reserved, use NULL. |
include_scan_range |
const char * |
Reserved, use NULL. |
include_source_sets |
const char * |
Reserved, use NULL. |
include_subsets |
a_bit_field |
Reserved; set to FALSE. |
include_tables |
const char * |
Reserved, use NULL. |
include_trigger_trans |
a_bit_field |
Set TRUE to include trigger-generated transactions. Set TRUE by dbtran -t, -g and -sr options. |
leave_output_on_error |
a_bit_field |
Set TRUE to leave the generated SQL file if log error detected. Set TRUE by dbtran -k option. |
logname |
const char * |
Name of the transaction log file. If NULL, there is no log. |
logrtn |
MSG_CALLBACK |
Address of a logging callback routine to write messages only to a log file or NULL. |
logs_dir |
const char * |
Transaction logs directory. Equivalent to dbtran -m option. The sqlname pointer must be set and connectparms must be NULL. |
match_mode |
a_bit_field |
Reserved; set to FALSE. |
match_pos |
const char * |
Reserved, use NULL. |
msgrtn |
MSG_CALLBACK |
Address of an information message callback routine or NULL. |
omit_comments |
a_bit_field |
Reserved; set to FALSE. |
queueparms |
const char * |
Reserved, use NULL. |
quiet |
a_bit_field |
Set to TRUE to operate without printing messages. Set TRUE by dbtran -q option. |
recovery_bytes |
a_sql_uint32 |
Reserved, use 0. |
recovery_ops |
a_sql_uint32 |
Reserved, use 0. |
remove_rollback |
a_bit_field |
Set to FALSE if you want to include rollback transactions in output. Set FALSE by dbtran -a option. |
replace |
a_bit_field |
Set TRUE to replace the SQL file without a confirmation. Set TRUE by dbtran -y option. |
repserver_users |
const char * |
Reserved, use NULL. |
show_undo |
a_bit_field |
Reserved; set to FALSE. |
since_checkpoint |
a_bit_field |
Set TRUE for output from most recent checkpoint. Set TRUE by dbtran -f option. |
since_time |
a_sql_uint32 |
Output from most recent checkpoint before time. The number of minutes since January 1, 0001. Equivalent to dbtran -j option. |
sqlname |
const char * |
Name of the SQL output file. If NULL, then the name is based on the transaction log file name. Equivalent to dbtran -n option. |
statusrtn |
MSG_CALLBACK |
Address of a status message callback routine or NULL. |
use_hex_offsets |
a_bit_field |
Reserved; set to FALSE. |
use_relative_offsets |
a_bit_field |
Reserved; set to FALSE. |
userlist |
p_name |
A linked list of user names. Equivalent to dbtran -u user1,... or -x user1,... Select or omit transactions for listed users. |
userlisttype |
char |
Set to DBTRAN_INCLUDE_ALL unless you want to include or exclude a list of users. DBTRAN_INCLUDE_SOME for -u, or DBTRAN_EXCLUDE_SOME for -x. |
version |
unsigned short |
DBTools version number (DB_TOOLS_VERSION_NUMBER). |
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |