SQL Driver for Twinfield
Twinfield is an online accounting package used in the Netherlands and Belgium. Accounting professionals form a large part of the Twinfield user community. The Twinfield driver covers 164 tables and 13851 columns.
## Twinfield Clients
Invantive UniversalSQL is available on many user interfaces ("clients" in traditional server-client paradigma). All Invantive UniversalSQL statements can be exchanged with a close to 100% compatibility across all clients and operating systems (Windows, MacOS, Linux, iOS, Android).
The clients include Microsoft Excel, Microsoft Power BI, Microsoft Power Query, Microsoft Word and Microsoft Outlook. Web-based clients include Invantive Cloud, Invantive Bridge Online as OData proxy, Invantive App Online for interactive apps, Online SQL Editor for query execution and Invantive Data Access Point as extended proxy.
The [[https://cloud.invantive.com/twinfield|Twinfield Power BI connector]] is based on the Invantive UniversalSQL driver for Twinfield, completed by a high-performance OData connector which works straight on Power BI without any add-on. The OData protocol is always version 4, independent whether the backing platform uses OData, SOAP or another protocol.
For technical users there are command-line editions of Invantive Data Hub running on iOS, Android, Windows, MacOS and Linux. Invantive Data Hub is also often used for enterprise server applications such as ETL. High-volume replication of data taken from the Twinfield API into traditional databases such as SQL Server (on-premises and Azure), MySQL, PostgreSQL and Oracle is possible using [[https://cloud.invantive.com/data-replicator/|Invantive Data Replicator]]. Invantive Data Replicator automatically creates and maintains Twinfield datawarehouses, possibly in combination with data from over 75 other (cloud) platforms. Invantive Data Replicator supports data volumes up to over 1 TB and over 5.000 companies. The on-premise edition of Invantive Bridge offers an Twinfield ADO.net provider.
Finally, online web apps can be build for Twinfield using App Online of [[https://cloud.invantive.com/twinfield|Invantive Cloud]].
Monitor API Calls
When a query or DML-statement has been executed on Invantive UniversalSQL a developer can evaluate the actual calls made to Twinfield using a query on sessionios@DataDictionary. As an alternative, extensive request and response logging can be enabled by setting log-native-calls-to-disk to true. In the %USERPROFILE%\Invantive\NativeLog folder Invantive UniversalSQL will create log files per Twinfield request and response.
## Specifications
The SQL driver for Twinfield supports partitioning: data from multiple companies are all listed together in one table. The value of the column COMPANY_CODE indicates which company the data belongs to. An introduction into the concepts of Invantive UniversalSQL such as databases, data containers and partitioning can be found in the [[Grammar|Invantive UniversalSQL grammar]].
The configuration can be changed using various attributes from the database definition, on log on and during use. A full list of configuration options is listed in the [[Attributes|driver attributes]].
The catalog name is used to compose the full qualified name of an object like a table or view. The schema name is used to compose the full qualified name of an object like a table or view. On Twinfield the comparison of two texts is case sensitive by default.
The driver has the following properties:
- Driver code for use in settings.xml: `Twinfield`
- Recommended alias: `tfd`
- Partition Label: `Company`
- More technical documentation as provided by the supplier of Twinfield on the native connection used can be found at [[https://c3.twinfield.com/webservices/documentation/|Technical Documentation]].
## Objects
Per object category a list is available:
- [[Tables]]
- [[Procedures]]