Skip to content

BeechCMS


BeechCMS / @beechcms/core / activeCondition

Function: activeCondition() ​

activeCondition(seed, mode?, tableAlias?): string | null

Returns the SQL condition (e.g. ce.deleted_at IS NULL), or null if mode is 'any'.

Parameters ​

seed ​

Seed

The seed schema definition.

mode? ​

TrashedMode = 'active'

'active' (default), 'trashed', or 'any'.

tableAlias? ​

string

Optional table or alias qualifier prefix.

Returns ​

string | null