> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DbConverter

> This class is only allowed in a ConverterApp context. Any attempts of using this in any other contexts will yield an exception.

This class is only allowed in a ConverterApp context. Any attempts of using this in any other contexts will yield an exception.

## Constructors

### DbConverter()

```crmscript theme={null}
DbConverter
```

Initializes a new instance of the DbConverter class.

## Methods

## eof()

Returns true if the iterator has passed the last element, and thus is at the end of the file.

```crmscript theme={null}
Bool eof()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - True true if the iterator has passed the last element; otherwise, false.

<Note>
  Typically used as a condition in a for loop to iterate through all remaining elements.
</Note>

## getRow()

Returns entire row of fields.

```crmscript theme={null}
Map getRow()
```

**Returns:** [CRMScript.Native.Map](CRMScript.Native.Map)

## next()

Moves the iterator to the next element.

```crmscript theme={null}
Bool next()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - False if the iterator is at en of file; otherwise, true.

## readBatch(String,Integer,Integer,Integer,Integer)

```crmscript theme={null}
Void readBatch(String p_0, Integer p_1, Integer p_2, Integer p_3, Integer p_4)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

## setSourceConnection(String,String,String,String,String)

```crmscript theme={null}
Void setSourceConnection(String p_0, String p_1, String p_2, String p_3, String p_4)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

## update(String,Map,Map)

This function will update a table row that's already integrated with CRM. It only writes rows that aren't integrated.

```crmscript theme={null}
Void update(String table, Map row, Map fieldMapping)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

## rite(String,Map)

Writes a table row.

```crmscript theme={null}
Void write(String table, Map row)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)


## Related topics

- [Namespace CRMScript.Native](/en/automation/crmscript/reference/CRMScript.Native.md)
- [CRMScript Reference](/en/automation/crmscript/reference/index.md)
- [SuperOffice.WebApi.DateTimeConverter](/en/api/reference/webapi/SuperOffice.WebApi.DateTimeConverter.md)
- [Automated tests](/contribute/automated-tests.md)
- [temp_db_lock table](/en/database/tables/temp-db-lock.md)
- [Get Product From Db Id](/en/api/reference/restful/rest/product/get-product-from-db-id.md)
