CONNECT Table Types Overview

CONNECT can handle very many table formats; it is indeed one of its main features. The Type option specifies the type and format of the table. The Type options available values and their descriptions are listed in the following table:

BINBinary file with numeric values in platform representation, also with columns at fixed offset within records and fixed record length.
BSON(Temporary) JSON table handled by the new JSON handling.
CSV*$"Comma Separated Values" file in which each variable length record contains column values separated by a specific character (defaulting to the comma)
DBF*File having the dBASE format.
DOSThe table is contained in one or several files. The file format can be refined by some other options of the command or more often using a specific type as many of those described below. Otherwise, it is a flat text file where columns are placed at a fixed offset within each record, the last column being of variable length.
DIRVirtual table that returns a file list like the Unix ls or DOS dir command.
FIXText file arranged like DOS but with fixed length records.
FMTFile in which each record contains the column values in a non-standard format (the same for each record) This format is specified in the column definition.
INIFile having the format of the initialization or configuration files used by many applications.
JDBC*Table accessed via a JDBC driver.
JSON*$File having the JSON format.
MACVirtual table returning information about the machine and network cards (Windows only).
MONGO*Table accessed via the MongoDB C Driver API.
MYSQL*Table accessed using the MySQL API like the FEDERATED engine.
OCCUR*A table based on another table existing on the current server, several columns of the object table containing values that can be grouped in only one column.
ODBC*Table extracted from an application accessible via ODBC or unixODBC. For example from another DBMS or from an Excel spreadsheet.
OEM*Table of any other formats not directly handled by CONNECT but whose access is implemented by an external FDW (foreign data wrapper) written in C++ (as a DLL or Shared Library).
PIVOT*Used to "pivot" the display of an existing table or view.
PROXY*A table based on another table existing on the current server.
TBL*Accessing a collection of tables as one table (like the MERGE engine does for MyIsam tables)
VECBinary file organized in vectors, in which column values are grouped consecutively, either split in separate files or in a unique file.
VIR*Virtual table containing only special and virtual columns.
WMI*Windows Management Instrumentation table displaying information coming from a WMI provider. This type enables to get in tabular format all sorts of information about the machine hardware and operating system (Windows only).
XCOL*A table based on another table existing on the current server with one of its columns containing comma separated values.
XML*$File having the XML or HTML format.
ZIPTable giving information about the contents of a zip file.

Catalog Tables

For all table types marked with a '*' in the table above, CONNECT is able to analyze the data source to retrieve the column definition. This can be used to define a “catalog” table that display the column description of the source, or to create a table without specifying the column definition that will be automatically constructed by CONNECT when creating the table.

When marked with a ‘$’ the file can be the result returned by a REST query.


Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.