Simplified GS-Base zip database files

A "simplified" GS-Base file can be created manually by users or by other applications and it contains only plain *.txt text files representing list of records of subsequent database tables. Each such text table should be accompanied by a small *.xml files specifying the text file options and field types. The *.xml files should match names of the included text *.txt tables. If the *.xml files are not present, opening the database file will require more resources and GS-Base will be displaying the "Open Text File" dialog box for each table.

If text options are omitted, the default text import settings will be used. If the "field name", "field type" or both are omitted GS-Base will determine these values reading the text tables.

Sample *.xml files:

Sample 1.

<?xml version="1.0" encoding="UTF-8"?/>
<gs-base-table>
<text-file-options
	use-separator="true"
	separator='tab'
	use-quoting="true"
	quoting-symbol='"'
	use-fixed-widths="false"
	fixed-widths=""
	field-names-in-first-row="true"
	text-to-numbers="true"
	text-to-dates="true"
	encoding="utf-8"/>
<fields>
	<field>
		<field-name>field a</field-name>
		<field-type>T</field-type>
	</field>
	<field>
		<field-name>field b</field-name>
		<field-type>T</field-type>
	</field>
	<field>
		<field-name>field c</field-name>
		<field-type>N</field-type>
	</field>
</fields>
</gs-base-table>

Sample 2.

<?xml version="1.0" encoding="UTF-8"?/>
<gs-base-table>
<text-file-options
	use-separator="true"
	separator=','
	use-quoting="true"
	quoting-symbol='"'
	use-fixed-widths="false"
	fixed-widths=""
	field-names-in-first-row="true"
	text-to-numbers="true"
	text-to-dates="true"
	encoding="ansi"
	iso-code-page="Default Ansi code page"/>
<fields>
	<field>
		<field-name>field a</field-name>
		<field-type>T</field-type>
	</field>
	<field>
		<field-name>field b</field-name>
		<field-type>T</field-type>
	</field>
	<field>
		<field-name>field c</field-name>
		<field-type>N</field-type>
	</field>
</fields>
</gs-base-table>

Related Topics

GS-Base database file format