10 std::unique_ptr<te::dt::Property> gid_pk1 = transactor->
getProperty(datasetname,
"gid");
13 pk->
add(gid_pk1.get());
void add(te::dt::Property *p)
It adds a property to the list of properties of the primary key.
virtual std::unique_ptr< te::da::PrimaryKey > getPrimaryKey(const std::string &datasetName)=0
It retrieves the primary key of the dataset.
virtual void addPrimaryKey(const std::string &datasetName, PrimaryKey *pk)=0
It adds a primary key constraint to the dataset schema.
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::PrimaryKey * AddPrimaryKey(const std::string &datasetname, te::da::DataSourceTransactor *transactor)
Examples on how to access/manipulate DataSources in TerraLib.
A DataSourceTransactor can be viewed as a connection to the data source for reading/writing things in...
It describes a primary key (pk) constraint.