<?xml version="1.0"?>
<serv_op>
  <parameters id="INDEX_DEF_P" _name="Index description">
    <parameter id="INDEX_TYPE" _name="Type" gdatype="gchararray" nullok="TRUE" source="types:0">
      <gda_value>UNIQUE</gda_value>
    </parameter>
    <parameter id="INDEX_NAME" _name="Name" _descr="Index name" gdatype="gchararray" nullok="FALSE"/>
    <parameter id="INDEX_ON_TABLE" _name="On table" gdatype="gchararray" nullok="FALSE" source="_DICT_TABLES_"/>
    <parameter id="INDEX_IFNOTEXISTS" _name="Only if it does not yet exist" _descr="Create index only if it does not yet exist" gdatype="gboolean" nullok="TRUE">
      <gda_value>FALSE</gda_value>
    </parameter>
  </parameters>

  <!-- Index fields -->
  <sequence id="INDEX_FIELDS_S" _name="Indexed field(s)" minitems="1" maxitems="3">
    <parameter id="INDEX_FIELD" _name="Indexed field or expression" gdatype="gchararray" nullok="FALSE" source="_INDEX_ON_TABLE/DICT_FIELDS_">
      <gda_value>indexed_field</gda_value>
    </parameter>
    <!-- To translators: "Compare method" refers to the method SQLite has to compare values -->
    <parameter id="INDEX_COLLATE" _name="Compare method" _descr="Collation name (BINARY|NOCASE)" gdatype="gchararray" nullok="TRUE"/>
    <parameter id="INDEX_SORT_ORDER" _name="Sort type" gdatype="gchararray" nullok="TRUE" source="sort:0"/>
  </sequence>

  <!-- Sources -->
  <sources>
    <gda_array name="sort">
      <gda_array_field name="id" gdatype="gchararray" nullok="FALSE"/>
      <gda_array_field name="text" gdatype="gchararray" nullok="FALSE"/>
      <gda_array_data>
        <gda_array_row>
          <gda_value>ASC</gda_value>
          <gda_value>Ascending</gda_value>
        </gda_array_row>
        <gda_array_row>
          <gda_value>DESC</gda_value>
          <gda_value>Descending</gda_value>
        </gda_array_row>
      </gda_array_data>
    </gda_array>

    <gda_array name="types">
      <gda_array_field name="id" gdatype="gchararray" nullok="FALSE"/>
      <gda_array_field name="text" gdatype="gchararray" nullok="FALSE"/>
      <gda_array_data>
	<gda_array_row>
          <gda_value>UNIQUE</gda_value>
          <gda_value>Unique</gda_value>
	</gda_array_row>
      </gda_array_data>
    </gda_array>
  </sources>
</serv_op>
