$darkmode
represents a Mssql-specific primary key constraint More...
Public Member Functions | |
constructor () | |
creates an empty primary key object | |
constructor (string n, __7_ hash c, __7_ string ts) | |
creates the object with the given attributes More... | |
string | getCreateSql (string table_name, __7_ hash opts) |
returns a string that can be used to create the constraint | |
softlist | getRenameSql (string table_name, string new_name) |
returns a string that can be used to rename the constraint | |
MssqlColumn | memberGate (string k) |
returns the MssqlColumn value of the given key if it exists, otherwise throws a KEY-ERROR exception More... | |
![]() | |
clearIndex () | |
clears any index base for the constraint | |
constructor (__7_ string ts) | |
creates the constraint with an optional filegroup name | |
getIndexSql (reference< string > sql, string name, __7_ hash opts) | |
adds index options onto the sql creation string | |
__7_ string | getTablespace () |
returns the filegroup name used for this constraint, if known | |
bool | setIndexBase (string ix) |
sets the supporting index name | |
setTablespace (__7_ string ts) | |
sets or clears the filegroup name | |
Additional Inherited Members | |
![]() | |
constructor () | |
empty constructor for subclasses | |
![]() | |
__7_ string | filegroup |
any filegroup for the unique key index | |
represents a Mssql-specific primary key constraint
creates the object with the given attributes
n | name of the constraint |
c | column hash |
ts | optional filegroup name |
MssqlColumn MssqlSqlUtilBase::MssqlPrimaryKey::memberGate | ( | string | k | ) |
returns the MssqlColumn value of the given key if it exists, otherwise throws a KEY-ERROR
exception
k | the name of the key to access |
KEY-ERROR | the given key does not exist in the contained hash |