8 std::unique_ptr<te::dt::Property> uk1 = transactor->
getProperty(datasetname,
"country_name");
9 std::unique_ptr<te::dt::Property> uk2 = transactor->
getProperty(datasetname,
"city_name");
void add(te::dt::Property *p)
It adds the property to the list of properties that participates in the unique key.
virtual std::unique_ptr< te::dt::Property > getProperty(const std::string &datasetName, const std::string &name)=0
It retrieves the property with the given name from the dataset.
te::da::UniqueKey * AddUniqueKey(const std::string &datasetname, te::da::DataSourceTransactor *transactor)
virtual void addUniqueKey(const std::string &datasetName, UniqueKey *uk)=0
It adds a unique key constraint to the dataset.
Examples on how to access/manipulate DataSources in TerraLib.
It describes a unique key (uk) constraint.
A DataSourceTransactor can be viewed as a connection to the data source for reading/writing things in...