MbDalDriversResult GetMetabaseDrivers(MbDalDriversArg tArg)
tArg. Drivers list selection parameters.
The GetMetabaseDrivers operation gets a list of drivers that can be used to connect to repositories.
To execute the operation, in the tArg field specify drivers list selection parameters.
The operation results in the obtained list of drivers.
Below is the example of getting the list of drivers that can be used to connect to repositories. The request contains whether the drivers that can be used in the operating system are obtained without the WSF driver developed in the system. The response contains the obtained list of drivers.
{
"GetMetabaseDrivers": {
"tArg": {
"isPublic": "true"
}
}
}
{
"GetMetabaseDriversResult": {
"drivers": {
"Item": [
{
"name": "Oracle",
"id": "ORCL8",
"tech": "1",
"version": "8"
},
{
"name": "Microsoft SQL Server",
"id": "MSSQL2012",
"tech": "2",
"version": "3"
},
{
"name": "Microsoft SQL Server (ODBC)",
"id": "MSSQL2012ODBC",
"tech": "2",
"version": "4"
},
{
"name": "PostgreSQL",
"id": "POSTGRES",
"tech": "8",
"version": "0"
},
{
"name": "SQLite",
"id": "SQLITE",
"tech": "11",
"version": "0"
}
]
}
}
}
public static MbDalDriversResult GetMetabaseDrivers()
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetMetabaseDrivers()
{
tArg = new MbDalDriversArg()
{
isPublic = true
}
};
// Get list of drivers
var result = somClient.GetMetabaseDrivers(tGet);
return result;
}
See also: