User Tools

Site Tools


samples:samples:sqlwizard

Table of Contents

SQLWizard sample

Documentation | Samples | SQLWizard

Summary

How to create a wizard for SQL connection: to select a database, a layer, and a layer format.

Description

This sample illustrates use of:

Name Description
TGIS_TokenizerA simple tokenizer for parameters line splitting.
TGIS_Tokenizer.ExecuteExDo tokenizing of simple stream like “aaaa”,“aaaa”,123,“aaaa”.
TGIS_Tokenizer.ExecuteDo tokenizing.
TGIS_LayerVectorSqlAbstract.SQLParametersExList of additional connection parameters.
TGIS_Layer.GetAvailableLayersGets a list of layers available in storage.
TGIS_Config.SaveSave backup copy of configuration file.
TGIS_Config.WriteStringWrite parameters given by _name.
TGIS_Config.SectionBy assigning this value you are overriding default TGIS_Config behavior.
TGIS_ConfigFactory.CreateConfigCreate a config instance based on a path extension.

Code

This sample is available on following platforms (click to see source code):

2020/02/12 01:17