Preparing search index...
The search index is not available
saltcorn-monorepo
saltcorn-monorepo
@saltcorn/data
models
TableConstraint
Class TableConstraint
TableConstraint class
Hierarchy
TableConstraint
Index
Constructors
constructor
Properties
configuration
id?
table_
id?
type
Accessors
to
Json
type_
options
Methods
delete
create
delete_
field_
constraints
find
find
One
Constructors
constructor
new
Table
Constraint
(
o
)
:
TableConstraint
Parameters
o
:
TableConstraintCfg
Returns
TableConstraint
Properties
configuration
configuration
:
any
Optional
id
id
?:
null
|
number
Optional
table_
id
table_
id
?:
number
type
type
:
"Unique"
|
"Index"
|
"Formula"
Accessors
to
Json
get
toJson
(
)
:
{
configuration
:
any
;
type
:
"Unique"
|
"Index"
|
"Formula"
;
}
Returns
{
configuration
:
any
;
type
:
"Unique"
|
"Index"
|
"Formula"
;
}
configuration
:
any
type
:
"Unique"
|
"Index"
|
"Formula"
Static
type_
options
get
type_options
(
)
:
(
"Unique"
|
"Index"
|
"Formula"
)
[]
Returns
(
"Unique"
|
"Index"
|
"Formula"
)
[]
Methods
delete
delete
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Static
create
create
(
f
)
:
Promise
<
TableConstraint
>
Parameters
f
:
TableConstraintCfg
Returns
Promise
<
TableConstraint
>
Static
delete_
field_
constraints
delete_
field_
constraints
(
table
,
field
)
:
Promise
<
void
>
Parameters
table
:
Table
field
:
Field
Returns
Promise
<
void
>
Static
find
find
(
where
,
selectopts
?
)
:
Promise
<
TableConstraint
[]
>
Parameters
where
:
Where
Optional
selectopts
:
SelectOptions
Returns
Promise
<
TableConstraint
[]
>
Static
find
One
find
One
(
where
)
:
Promise
<
null
|
TableConstraint
>
Parameters
where
:
Where
Returns
Promise
<
null
|
TableConstraint
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
configuration
id
table_
id
type
to
Json
type_
options
delete
create
delete_
field_
constraints
find
find
One
saltcorn-
monorepo
@saltcorn/admin-
models
@saltcorn/common-
code
@saltcorn/data
models
Crash
Event
Log
Field
Repeat
File
Form
Page
Group
Table
Table
Constraint
User
View
Workflow
config
discovery
email
expression
layout
random
scheduler
Crash
Event
Log
Field
Field
Repeat
File
Form
Library
Page
Page
Group
Plugin
Role
Table
Table
Constraint
Trigger
User
View
Workflow
plugin_
helper
utils
state
web_
mobile_
commons
db
migrations
@saltcorn/db-
common
@saltcorn/markup
@saltcorn/mobile-
builder
@saltcorn/sqlite
@saltcorn/sqlite-
mobile
@saltcorn/types
Generated using
TypeDoc
TableConstraint class