ST_FDWDrivers

获得所有Ganos FDW支持的数据源驱动列表。

语法

setof record ST_FDWDrivers(out integer id ,
              out text driver_name ,
              out text open_options );

参数

参数名称

描述

id

驱动序号。

driver_name

数据驱动名称。

open_options

数据驱动打开参数。

描述

获得Ganos FDW支持的所有数据源驱动列表。其中open_options可以作为CREATE SERVER的参数。

示例

select * from
(select (st_fdwdrivers()).*) table_test
where driver_name='ESRI Shapefile';


 id |  driver_name   |         open_options
  4 | ESRI Shapefile | <OpenOptionList>  <Option name='ENCODING' type='string' description='to override the encoding interpretation of the DBF with any encoding supported by CPLRecode or to "" to avoid any recod
ing'/>  <Option name='DBF_DATE_LAST_UPDATE' type='string' description='Modification date to write in DBF header with YYYY-MM-DD format'/>  <Option name='ADJUST_TYPE' type='boolean' description='Whether to read w
hole .dbf to adjust Real->Integer/Integer64 or Integer64->Integer field types if possible' default='NO'/>  <Option name='ADJUST_GEOM_TYPE' type='string-select' description='Whether and how to adjust layer geomet
ry type from actual shapes' default='FIRST_SHAPE'>    <Value>NO</Value>    <Value>FIRST_SHAPE</Value>    <Value>ALL_SHAPES</Value>  </Option>  <Option name='AUTO_REPACK' type='boolean' description='Whether the s
hapefile should be automatically repacked when needed' default='YES'/>  <Option name='DBF_EOF_CHAR' type='boolean' description='Whether to write the 0x1A end-of-file character in DBF files' default='YES'/></Open
OptionList>
(1 row)