> For the complete documentation index, see [llms.txt](https://sandbox-docs.verifone.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sandbox-docs.verifone.com/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public.md).

# Public API

[Files](#files) | [Data Structures](#nested-classes) | [Enumerations](#enum-members) | [Functions](#func-members)

API for the users of the library. [More...](#details)

Collaboration diagram for Public API:

![](/files/7q4esJ8BWb2YiRSMxblQ)

|       |                                                                                                                      |
| ----- | -------------------------------------------------------------------------------------------------------------------- |
| Files |                                                                                                                      |
| file  | [inf\_util.h](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md) |
|       | <p>Import/Export Utility API.<br></p>                                                                                |

|                 |                                                                                                    |
| --------------- | -------------------------------------------------------------------------------------------------- |
| Data Structures |                                                                                                    |
| struct          | [ImExPar](#struct_im_ex_par)                                                                       |
|                 | <p>Structure to tune up import /export operations. <a href="#struct_im_ex_par">More...</a><br></p> |
| struct          | [ErrorInfo](#struct_error_info)                                                                    |
|                 | <p>Structure to capture error information. <a href="#struct_error_info">More...</a><br></p>        |

|              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Enumerations |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| enum         | <p><a href="#ga59e56af19e754a6aa26a612ebf91d05f">ErrorCode</a> {<br>  <a href="#gga59e56af19e754a6aa26a612ebf91d05fae68ba0b1134392f5da641ddee28fbe71">INFO\_E\_OK</a> = 0, <a href="#gga59e56af19e754a6aa26a612ebf91d05fa5be3dde74d9d17a8194d3a37b0fb0537">INFO\_E\_BAD\_DB\_SCHEMA\_FILE</a> = -1, <a href="#gga59e56af19e754a6aa26a612ebf91d05fa6e33879c03fd180b25df18ccd52c5cf6">INFO\_E\_BAD\_DATA\_SCHEMA\_FILE</a> = -2, <a href="#gga59e56af19e754a6aa26a612ebf91d05fa7f326dd24642867ef8807dbd48d45f43">INFO\_E\_BAD\_DB</a> = -3,<br>  <a href="#gga59e56af19e754a6aa26a612ebf91d05fada3d517617be644a0d42a0639ad3cda1">INFO\_E\_BAD\_DATA\_FILE</a> = -4, <a href="#gga59e56af19e754a6aa26a612ebf91d05fae79e3a320f35a2b58cf253ec4fd9621d">INFO\_E\_FILE\_IO</a> = -5, <a href="#gga59e56af19e754a6aa26a612ebf91d05fa858ba6ec9e5cf8d171bed9ba6e09a979">INFO\_E\_DB\_FAILURE</a> = -10, <a href="#gga59e56af19e754a6aa26a612ebf91d05fa087340e75a4ac0fd699b19f1bff2cda8">INFO\_E\_DB\_INSERT</a> = -11,<br>  <a href="#gga59e56af19e754a6aa26a612ebf91d05fa0fdb9d9a09de6fd5ca12f767b1e2cf15">INFO\_E\_DB\_READ</a> = -12, <a href="#gga59e56af19e754a6aa26a612ebf91d05faeeec8af383aa416f8b55ef1dd44df434">INFO\_E\_DB\_TRANSACTION</a> = -13, <a href="#gga59e56af19e754a6aa26a612ebf91d05fa192bbbf41df3d07b8f860a0d5f4e0597">INFO\_E\_DB\_DELETE</a> = -14, <a href="#gga59e56af19e754a6aa26a612ebf91d05fac4ddc287af5887b0a30f6883573f4a1b">INFO\_E\_PARSE\_ERROR</a> = -100,<br>  <a href="#gga59e56af19e754a6aa26a612ebf91d05fa63f25277d2d2de83d84f95e932f3119c">INFO\_E\_NO\_MORE</a> = -200, <a href="#gga59e56af19e754a6aa26a612ebf91d05faa37c4ca5dbc0693b88b07f5c83745a9c">INFO\_E\_UNKNOWN</a> = -201, <a href="#gga59e56af19e754a6aa26a612ebf91d05fa8d2a98de16d6eb4c7d4352f455fcc1a3">INFO\_E\_SKIPPED</a> = -202, <a href="#gga59e56af19e754a6aa26a612ebf91d05fa9e5197133a18fa013348582a12aee328">INFO\_E\_NOT\_IMPL</a> = -999,<br>  <a href="#gga59e56af19e754a6aa26a612ebf91d05fa0962cacbe8f8661cd7784a0b4c07ef8d">INFO\_E\_INTERNAL\_ERROR</a> = -1000, <a href="#gga59e56af19e754a6aa26a612ebf91d05fa9d59c9c4da6e8df9253776ed07a450b8">INFO\_E\_PARAM</a> = -1001, <a href="#gga59e56af19e754a6aa26a612ebf91d05fa7db006c3fb86a536a1142d070e136afe">INFO\_E\_BACKEND</a> = -1002, <a href="#gga59e56af19e754a6aa26a612ebf91d05fa09dd2684c518a6f846ad808721354903">INFO\_E\_BACKEND\_ROLE</a> = -1003<br>}</p> |
|              | <p>Error codes for the API functions. <a href="#ga59e56af19e754a6aa26a612ebf91d05f">More...</a><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| enum         | [OperationSubType](#ga436e393d88341728721b3496ededd5a3) { [INFO\_OP\_FULL](#gga436e393d88341728721b3496ededd5a3ad9c3be77e956290d97cb38ee023f94d3), [INFO\_OP\_PARTIAL](#gga436e393d88341728721b3496ededd5a3a541723e2d922a2255ea2234e9773981e), [INFO\_OP\_MERGE](#gga436e393d88341728721b3496ededd5a3a6b373622a755b7cbee3491e97840c764) }                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
|              | <p>Operation sub type. <a href="#ga436e393d88341728721b3496ededd5a3">More...</a><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |

|                                                                                                                                                                                                            |                                                                                                                                                                                                                                         |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Functions                                                                                                                                                                                                  |                                                                                                                                                                                                                                         |
| [INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) void                                             | [error\_info\_free](#gab01e86686ec39099f98fc710fa1a1cf8) ([ErrorInfo](#struct_error_info) \*error)                                                                                                                                      |
|                                                                                                                                                                                                            | <p>Deallocate resources referenced by a <a href="#struct_error_info">ErrorInfo</a> structure. <a href="#gab01e86686ec39099f98fc710fa1a1cf8">More...</a><br></p>                                                                         |
| [INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) [ErrorCode](#ga59e56af19e754a6aa26a612ebf91d05f) | [info\_import](#gab028dff98150e41fc21c1b3a3f5d336d) (const char \*dataSchemaFile, const char \*dbSchemaFile, const char \*dbName, const char \*inputFileName, [ErrorInfo](#struct_error_info) \*error)                                  |
|                                                                                                                                                                                                            | <p>Import data from datafile to database. <a href="#gab028dff98150e41fc21c1b3a3f5d336d">More...</a><br></p>                                                                                                                             |
| [INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) [ErrorCode](#ga59e56af19e754a6aa26a612ebf91d05f) | [info\_import](#ga258b17ec88ed2273039e1477c463ba0f) (const char \*dataSchemaFile, const char \*dbSchemaFile, const char \*dbName, const char \*inputFileName, const char \*condition, [ErrorInfo](#struct_error_info) \*error)          |
|                                                                                                                                                                                                            | <p>Import data from datafile to database. <a href="#ga258b17ec88ed2273039e1477c463ba0f">More...</a><br></p>                                                                                                                             |
| [INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) [ErrorCode](#ga59e56af19e754a6aa26a612ebf91d05f) | [info\_partial\_import](#gaa9ed5d1644c56b30f1dcbad90537deb7) (const char \*dataSchemaFile, const char \*dbSchemaFile, const char \*dbName, const char \*inputFileName, [ErrorInfo](#struct_error_info) \*error)                         |
|                                                                                                                                                                                                            | <p>Import data from datafile to database. Data is inserted or updated, depends from destination DB. <a href="#gaa9ed5d1644c56b30f1dcbad90537deb7">More...</a><br></p>                                                                   |
| [INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) [ErrorCode](#ga59e56af19e754a6aa26a612ebf91d05f) | [info\_partial\_import](#gacc99cea360371439ac165789200eacda) (const char \*dataSchemaFile, const char \*dbSchemaFile, const char \*dbName, const char \*inputFileName, const char \*condition, [ErrorInfo](#struct_error_info) \*error) |
|                                                                                                                                                                                                            | <p>Import data from datafile to database. Data is inserted or updated, depends from destination DB. <a href="#gacc99cea360371439ac165789200eacda">More...</a><br></p>                                                                   |
| [INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) [ErrorCode](#ga59e56af19e754a6aa26a612ebf91d05f) | [info\_export](#gacc8c27e963a0deb2af270918ec233f7c) (const char \*dataSchemaFile, const char \*dbSchemaFile, const char \*dbName, const char \*outputFileName, [ErrorInfo](#struct_error_info) \*error)                                 |
|                                                                                                                                                                                                            | <p>Export data from database to datafile. <a href="#gacc8c27e963a0deb2af270918ec233f7c">More...</a><br></p>                                                                                                                             |
| [INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) [ErrorCode](#ga59e56af19e754a6aa26a612ebf91d05f) | [info\_import\_property\_db](#ga188443d652530e5cd3b6c2eac7d3870d) (const char \*dbName, const char \*inputFileName, [ErrorInfo](#struct_error_info) \*error)                                                                            |
|                                                                                                                                                                                                            | <p>Import data from datafile to property database. <a href="#ga188443d652530e5cd3b6c2eac7d3870d">More...</a><br></p>                                                                                                                    |
| [INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) [ErrorCode](#ga59e56af19e754a6aa26a612ebf91d05f) | [info\_import\_property\_db](#gabb79f6feed0203e74b933c0aef3d412e) (const char \*dbName, const char \*inputFileName, const char \*condition, [ErrorInfo](#struct_error_info) \*error)                                                    |
|                                                                                                                                                                                                            | <p>Import data from datafile to property database. <a href="#gabb79f6feed0203e74b933c0aef3d412e">More...</a><br></p>                                                                                                                    |
| [INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) [ErrorCode](#ga59e56af19e754a6aa26a612ebf91d05f) | [info\_partial\_import\_property\_db](#ga51782a9663512eea89a58503d1b0f8b7) (const char \*dbName, const char \*inputFileName, [ErrorInfo](#struct_error_info) \*error)                                                                   |
|                                                                                                                                                                                                            | <p>Import data from datafile to property database. Data is inserted or updated, depends from destination DB. <a href="#ga51782a9663512eea89a58503d1b0f8b7">More...</a><br></p>                                                          |
| [INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) [ErrorCode](#ga59e56af19e754a6aa26a612ebf91d05f) | [info\_partial\_import\_property\_db](#gad453df8d3bf2a654b35cdba2ac25ec09) (const char \*dbName, const char \*inputFileName, const char \*condition, [ErrorInfo](#struct_error_info) \*error)                                           |
|                                                                                                                                                                                                            | <p>Import data from datafile to property database. Data is inserted or updated, depends from destination DB. <a href="#gad453df8d3bf2a654b35cdba2ac25ec09">More...</a><br></p>                                                          |
| [INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) [ErrorCode](#ga59e56af19e754a6aa26a612ebf91d05f) | [info\_merge\_import\_property\_db](#gad27f3e972a4ef344ffdc18a32b1c6e70) (const char \*dbName, const char \*inputFileName, [ErrorInfo](#struct_error_info) \*error)                                                                     |
|                                                                                                                                                                                                            | <p>Merge data from source XML file to destination DB. Data is inserted if not existed in destination DB. <a href="#gad27f3e972a4ef344ffdc18a32b1c6e70">More...</a><br></p>                                                              |
| [INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) [ErrorCode](#ga59e56af19e754a6aa26a612ebf91d05f) | [info\_merge\_import\_property\_db](#ga2e1f19af8ac77b89414cb307e7be6ebe) (const char \*dbName, const char \*inputFileName, const char \*condition, [ErrorInfo](#struct_error_info) \*error)                                             |
|                                                                                                                                                                                                            | <p>Merge data from source XML file to destination DB. Data is inserted if not existed in destination DB. <a href="#ga2e1f19af8ac77b89414cb307e7be6ebe">More...</a><br></p>                                                              |
| [INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) [ErrorCode](#ga59e56af19e754a6aa26a612ebf91d05f) | [info\_export\_property\_db](#gad68545aeaee0777b75d402be3c239d06) (const char \*dbName, const char \*outputFileName, [ErrorInfo](#struct_error_info) \*error)                                                                           |
|                                                                                                                                                                                                            | <p>Export data from database to datafile. <a href="#gad68545aeaee0777b75d402be3c239d06">More...</a><br></p>                                                                                                                             |

### DetailedDescription <a href="#detailed-description" id="detailed-description"></a>

API for the users of the library.

***

### DataStructure Documentation <a href="#data-structure-documentation" id="data-structure-documentation"></a>

### ImExPar <a href="#struct_im_ex_par" id="struct_im_ex_par"></a>

struct ImExPar

Structure to tune up import /export operations.

|                                                         |                 |                               |
| ------------------------------------------------------- | --------------- | ----------------------------- |
| Data Fields                                             |                 |                               |
| string                                                  | condition       | Condition to match.           |
| int                                                     | is\_conditional | Condition has been specified. |
| Operation                                               | op              | Top-level operation codes.    |
| [OperationSubType](#ga436e393d88341728721b3496ededd5a3) | subop           | Operation sub type.           |

### ErrorInfo <a href="#struct_error_info" id="struct_error_info"></a>

struct ErrorInfo

Structure to capture error information.

This structure can be used by the caller of Info Svc to receive extended error information in the case of error

|                                                  |                 |                                                                                |
| ------------------------------------------------ | --------------- | ------------------------------------------------------------------------------ |
| Data Fields                                      |                 |                                                                                |
| [ErrorCode](#ga59e56af19e754a6aa26a612ebf91d05f) | errorCode       | final error code                                                               |
| char \*                                          | extendedMessage | message that provides details of the failure                                   |
| char \*                                          | location        | location of the faulty object. Can be file name, file/line, or database table. |
| char \*                                          | shortMessage    | short message that can be shown to the end user                                |

### EnumerationType Documentation <a href="#enumeration-type-documentation" id="enumeration-type-documentation"></a>

### ErrorCode <a href="#ga59e56af19e754a6aa26a612ebf91d05f" id="ga59e56af19e754a6aa26a612ebf91d05f"></a>

enum \[ErrorCode]\(#ga59e56af19e754a6aa26a612ebf91d05f)

Error codes for the API functions.

|                                  |                                                      |
| -------------------------------- | ---------------------------------------------------- |
| Enumerator                       |                                                      |
| INFO\_E\_OK                      | No errors.                                           |
| INFO\_E\_BAD\_DB\_SCHEMA\_FILE   | DB schema file either not found or malformed.        |
| INFO\_E\_BAD\_DATA\_SCHEMA\_FILE | Data schema file either not found or malformed.      |
| INFO\_E\_BAD\_DB                 | DB cannot be opened.                                 |
| INFO\_E\_BAD\_DATA\_FILE         | Data file is improperly formatted or corrupt.        |
| INFO\_E\_FILE\_IO                | File I/O operation failed.                           |
| INFO\_E\_DB\_FAILURE             | Internal DB failure (e.g. cannot open/close db file) |
| INFO\_E\_DB\_INSERT              | DB insert operation failed.                          |
| INFO\_E\_DB\_READ                | DB read (select?) operation failed.                  |
| INFO\_E\_DB\_TRANSACTION         | DB transaction start or finish failed.               |
| INFO\_E\_DB\_DELETE              | DB delete operation failed.                          |
| INFO\_E\_PARSE\_ERROR            | Error occured in parser.                             |
| INFO\_E\_NO\_MORE                | No more data.                                        |
| INFO\_E\_UNKNOWN                 | An object is not in the schema.                      |
| INFO\_E\_SKIPPED                 | Node has been skipped.                               |
| INFO\_E\_NOT\_IMPL               | Not implemented.                                     |
| INFO\_E\_INTERNAL\_ERROR         | Some internal error.                                 |
| INFO\_E\_PARAM                   | Invalid arguments to function.                       |
| INFO\_E\_BACKEND                 | Backend is unknown.                                  |
| INFO\_E\_BACKEND\_ROLE           | Backend is used in the wrong role.                   |

### OperationSubType <a href="#ga436e393d88341728721b3496ededd5a3" id="ga436e393d88341728721b3496ededd5a3"></a>

enum \[OperationSubType]\(#ga436e393d88341728721b3496ededd5a3)

Operation sub type.

|                   |                                            |
| ----------------- | ------------------------------------------ |
| Enumerator        |                                            |
| INFO\_OP\_FULL    | delete destination prior operation         |
| INFO\_OP\_PARTIAL | update destination                         |
| INFO\_OP\_MERGE   | insert data which not exist in destination |

### FunctionDocumentation <a href="#function-documentation" id="function-documentation"></a>

### error\_info\_free() <a href="#gab01e86686ec39099f98fc710fa1a1cf8" id="gab01e86686ec39099f98fc710fa1a1cf8"></a>

[INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) void error\_info\_free

Deallocate resources referenced by a [ErrorInfo](#struct_error_info) structure.

**Parameters**

\[in] **error** address of the structure

This function releases all dynamically allocated strings behind the *error* structure. Note that it does not deallocate the structure itself. If *error* is `NULL`, then this function is a no-op.

### info\_export() <a href="#gacc8c27e963a0deb2af270918ec233f7c" id="gacc8c27e963a0deb2af270918ec233f7c"></a>

[INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) \[ErrorCode]\(#ga59e56af19e754a6aa26a612ebf91d05f) info\_export

Export data from database to datafile.

**Parameters**

\[in] **dataSchemaFile** name of XML file containing schema of the data file \[in] **dbSchemaFile** name of XML file containing schema of the database \[in] **dbName** name of a database that contains the data to be exported \[in] **outputFileName** name of data file to be created \[out] **error** pointer to struct ErrorInfo. Note, the initial contents of this structure will be overwritten!

#### Returns

one of [ErrorCode](#ga59e56af19e754a6aa26a612ebf91d05f) values, [INFO\_E\_OK](#gga59e56af19e754a6aa26a612ebf91d05fae68ba0b1134392f5da641ddee28fbe71) on success. The same error code will be duplicated in *error->errorCode*, if *error* is not `NULL`.

### info\_export\_property\_db() <a href="#gad68545aeaee0777b75d402be3c239d06" id="gad68545aeaee0777b75d402be3c239d06"></a>

[INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) \[ErrorCode]\(#ga59e56af19e754a6aa26a612ebf91d05f) info\_export\_property\_db

Export data from database to datafile.

**Parameters**

\[in] **dbName** name of a database that contains the data to be exported \[in] **outputFileName** name of data file to be created \[out] **error** pointer to struct ErrorInfo. Note, the initial contents of this structure will be overwritten!

#### Returns

one of [ErrorCode](#ga59e56af19e754a6aa26a612ebf91d05f) values, [INFO\_E\_OK](#gga59e56af19e754a6aa26a612ebf91d05fae68ba0b1134392f5da641ddee28fbe71) on success. The same error code will be duplicated in *error->errorCode*, if *error* is not `NULL`.

### info\_import()\[1/2] <a href="#ga258b17ec88ed2273039e1477c463ba0f" id="ga258b17ec88ed2273039e1477c463ba0f"></a>

[INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) \[ErrorCode]\(#ga59e56af19e754a6aa26a612ebf91d05f) info\_import

Import data from datafile to database.

**Parameters**

\[in] **dataSchemaFile** name of XML file containing schema of the data file \[in] **dbSchemaFile** name of XML file containing schema of the database \[in] **dbName** name of a database to which data will be imported \[in] **inputFileName** name of data file to be loaded \[in] **condition** string to match \[out] **error** pointer to struct ErrorInfo. Note, the initial contents of this structure will be overwritten!

#### Returns

one of [ErrorCode](#ga59e56af19e754a6aa26a612ebf91d05f) values, [INFO\_E\_OK](#gga59e56af19e754a6aa26a612ebf91d05fae68ba0b1134392f5da641ddee28fbe71) on success. The same error code will be duplicated in *error->errorCode*, if *error* is not `NULL`.

{% hint style="info" %}
target tables are deleted before importing data from datafile
{% endhint %}

### info\_import()\[2/2] <a href="#gab028dff98150e41fc21c1b3a3f5d336d" id="gab028dff98150e41fc21c1b3a3f5d336d"></a>

[INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) \[ErrorCode]\(#ga59e56af19e754a6aa26a612ebf91d05f) info\_import

Import data from datafile to database.

**Parameters**

\[in] **dataSchemaFile** name of XML file containing schema of the data file \[in] **dbSchemaFile** name of XML file containing schema of the database \[in] **dbName** name of a database to which data will be imported \[in] **inputFileName** name of data file to be loaded \[out] **error** pointer to struct ErrorInfo. Note, the initial contents of this structure will be overwritten!

#### Returns

one of [ErrorCode](#ga59e56af19e754a6aa26a612ebf91d05f) values, [INFO\_E\_OK](#gga59e56af19e754a6aa26a612ebf91d05fae68ba0b1134392f5da641ddee28fbe71) on success. The same error code will be duplicated in *error->errorCode*, if *error* is not `NULL`.

{% hint style="info" %}
target tables are deleted before importing data from datafile
{% endhint %}

### info\_import\_property\_db()\[1/2] <a href="#gabb79f6feed0203e74b933c0aef3d412e" id="gabb79f6feed0203e74b933c0aef3d412e"></a>

[INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) \[ErrorCode]\(#ga59e56af19e754a6aa26a612ebf91d05f) info\_import\_property\_db

Import data from datafile to property database.

**Parameters**

\[in] **dbName** name of a database to which data will be imported \[in] **inputFileName** name of data file to be loaded \[in] **condition** string to match \[out] **error** pointer to struct ErrorInfo. Note, the initial contents of this structure will be overwritten!

#### Returns

one of [ErrorCode](#ga59e56af19e754a6aa26a612ebf91d05f) values, [INFO\_E\_OK](#gga59e56af19e754a6aa26a612ebf91d05fae68ba0b1134392f5da641ddee28fbe71) on success. The same error code will be duplicated in *error->errorCode*, if *error* is not `NULL`.

{% hint style="info" %}
target tables are deleted before importing data from datafile
{% endhint %}

### info\_import\_property\_db()\[2/2] <a href="#ga188443d652530e5cd3b6c2eac7d3870d" id="ga188443d652530e5cd3b6c2eac7d3870d"></a>

[INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) \[ErrorCode]\(#ga59e56af19e754a6aa26a612ebf91d05f) info\_import\_property\_db

Import data from datafile to property database.

**Parameters**

\[in] **dbName** name of a database to which data will be imported \[in] **inputFileName** name of data file to be loaded \[out] **error** pointer to struct ErrorInfo. Note, the initial contents of this structure will be overwritten!

#### Returns

one of [ErrorCode](#ga59e56af19e754a6aa26a612ebf91d05f) values, [INFO\_E\_OK](#gga59e56af19e754a6aa26a612ebf91d05fae68ba0b1134392f5da641ddee28fbe71) on success. The same error code will be duplicated in *error->errorCode*, if *error* is not `NULL`.

{% hint style="info" %}
target tables are deleted before importing data from datafile
{% endhint %}

### info\_merge\_import\_property\_db()\[1/2] <a href="#ga2e1f19af8ac77b89414cb307e7be6ebe" id="ga2e1f19af8ac77b89414cb307e7be6ebe"></a>

[INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) \[ErrorCode]\(#ga59e56af19e754a6aa26a612ebf91d05f) info\_merge\_import\_property\_db

Merge data from source XML file to destination DB. Data is inserted if not existed in destination DB.

**Parameters**

\[in] **dbName** name of a database to which data will be imported \[in] **inputFileName** name of data file to be loaded \[in] **condition** string to match \[out] **error** pointer to struct ErrorInfo. Note, the initial contents of this structure will be overwritten!

#### Returns

one of [ErrorCode](#ga59e56af19e754a6aa26a612ebf91d05f) values, [INFO\_E\_OK](#gga59e56af19e754a6aa26a612ebf91d05fae68ba0b1134392f5da641ddee28fbe71) on success. The same error code will be duplicated in *error->errorCode*, if *error* is not `NULL`.

### info\_merge\_import\_property\_db()\[2/2] <a href="#gad27f3e972a4ef344ffdc18a32b1c6e70" id="gad27f3e972a4ef344ffdc18a32b1c6e70"></a>

[INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) \[ErrorCode]\(#ga59e56af19e754a6aa26a612ebf91d05f) info\_merge\_import\_property\_db

Merge data from source XML file to destination DB. Data is inserted if not existed in destination DB.

**Parameters**

\[in] **dbName** name of a database to which data will be imported \[in] **inputFileName** name of data file to be loaded \[out] **error** pointer to struct ErrorInfo. Note, the initial contents of this structure will be overwritten!

#### Returns

one of [ErrorCode](#ga59e56af19e754a6aa26a612ebf91d05f) values, [INFO\_E\_OK](#gga59e56af19e754a6aa26a612ebf91d05fae68ba0b1134392f5da641ddee28fbe71) on success. The same error code will be duplicated in *error->errorCode*, if *error* is not `NULL`.

### info\_partial\_import()\[1/2] <a href="#gacc99cea360371439ac165789200eacda" id="gacc99cea360371439ac165789200eacda"></a>

[INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) \[ErrorCode]\(#ga59e56af19e754a6aa26a612ebf91d05f) info\_partial\_import

Import data from datafile to database. Data is inserted or updated, depends from destination DB.

**Parameters**

\[in] **dataSchemaFile** name of XML file containing schema of the data file \[in] **dbSchemaFile** name of XML file containing schema of the database \[in] **dbName** name of a database to which data will be imported \[in] **inputFileName** name of data file with new/updated records \[in] **condition** string to match \[out] **error** pointer to struct ErrorInfo. Note, the initial contents of this structure will be overwritten!

#### Returns

one of [ErrorCode](#ga59e56af19e754a6aa26a612ebf91d05f) values, [INFO\_E\_OK](#gga59e56af19e754a6aa26a612ebf91d05fae68ba0b1134392f5da641ddee28fbe71) on success. The same error code will be duplicated in *error->errorCode*, if *error* is not `NULL`.

### info\_partial\_import()\[2/2] <a href="#gaa9ed5d1644c56b30f1dcbad90537deb7" id="gaa9ed5d1644c56b30f1dcbad90537deb7"></a>

[INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) \[ErrorCode]\(#ga59e56af19e754a6aa26a612ebf91d05f) info\_partial\_import

Import data from datafile to database. Data is inserted or updated, depends from destination DB.

**Parameters**

\[in] **dataSchemaFile** name of XML file containing schema of the data file \[in] **dbSchemaFile** name of XML file containing schema of the database \[in] **dbName** name of a database to which data will be imported \[in] **inputFileName** name of data file with new/updated records \[out] **error** pointer to struct ErrorInfo. Note, the initial contents of this structure will be overwritten!

#### Returns

one of [ErrorCode](#ga59e56af19e754a6aa26a612ebf91d05f) values, [INFO\_E\_OK](#gga59e56af19e754a6aa26a612ebf91d05fae68ba0b1134392f5da641ddee28fbe71) on success. The same error code will be duplicated in *error->errorCode*, if *error* is not `NULL`.

### info\_partial\_import\_property\_db()\[1/2] <a href="#gad453df8d3bf2a654b35cdba2ac25ec09" id="gad453df8d3bf2a654b35cdba2ac25ec09"></a>

[INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) \[ErrorCode]\(#ga59e56af19e754a6aa26a612ebf91d05f) info\_partial\_import\_property\_db

Import data from datafile to property database. Data is inserted or updated, depends from destination DB.

**Parameters**

\[in] **dbName** name of a database to which data will be imported \[in] **inputFileName** name of data file to be loaded \[in] **condition** string to match \[out] **error** pointer to struct ErrorInfo. Note, the initial contents of this structure will be overwritten!

#### Returns

one of [ErrorCode](#ga59e56af19e754a6aa26a612ebf91d05f) values, [INFO\_E\_OK](#gga59e56af19e754a6aa26a612ebf91d05fae68ba0b1134392f5da641ddee28fbe71) on success. The same error code will be duplicated in *error->errorCode*, if *error* is not `NULL`.

### info\_partial\_import\_property\_db()\[2/2] <a href="#ga51782a9663512eea89a58503d1b0f8b7" id="ga51782a9663512eea89a58503d1b0f8b7"></a>

[INF\_UTIL\_API](/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public/inf__util_8h.md#a99bc021d4bced3a9a02e9ca8cc5630c5) \[ErrorCode]\(#ga59e56af19e754a6aa26a612ebf91d05f) info\_partial\_import\_property\_db

Import data from datafile to property database. Data is inserted or updated, depends from destination DB.

**Parameters**

\[in] **dbName** name of a database to which data will be imported \[in] **inputFileName** name of data file to be loaded \[out] **error** pointer to struct ErrorInfo. Note, the initial contents of this structure will be overwritten!

#### Returns

one of [ErrorCode](#ga59e56af19e754a6aa26a612ebf91d05f) values, [INFO\_E\_OK](#gga59e56af19e754a6aa26a612ebf91d05fae68ba0b1134392f5da641ddee28fbe71) on success. The same error code will be duplicated in *error->errorCode*, if *error* is not `NULL`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sandbox-docs.verifone.com/s-adk-5.1-programmers-guide/readme/modules/group__inf__util/group__inf__util__public.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
