Support #302

Mappingchema dbtable

Added by Anonymous 7 months ago. Updated 5 months ago.

Status:Closed Start:02/19/2010
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:-
Target version:-

Description

can i define an searchkey or unique key in mapping class?

regards
Axel

History

Updated by Koen Deforche 6 months ago

  • Status changed from New to Resolved

No you cannot (currently ?).

But since this only affects schema generation, you can create the schema yourself rather than relying on Wt::Dbo for that? The problem is that index and constraint capabilities vary from database to database and I think we will never have enough API to support all these options, so we prefer to consider this outside the scope of Wt::Dbo... Arguing that a simple 'unique' constraint or simple default index should be included in Wt::Dbo does make sense though, so let's see if more people demand this.

Regards,
koen

Updated by Koen Deforche 5 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF