res://addons/w4gd/w4rm/w4rm_triggers.gd:W4RMTriggerBuilder

Inherits: RefCounted

A utility class for creating triggers for the given table.

Properties

Variant

table

Methods

void

build ( Dictionary p_triggers )

void

cannot_update ( String p_column )

void

force_current_time ( String p_column )

void

force_current_time_on_insert ( String p_column )

void

force_current_time_on_update ( String p_column )

void

force_default ( String p_column )

void

force_default_on_insert ( String p_column )

void

force_value ( String p_column, String p_value )

void

force_value_on_insert ( String p_column, String p_value )

void

force_value_on_update ( String p_column, String p_value )

void

optional_default ( String p_column )

void

optional_default_on_insert ( String p_column )


Property Descriptions

Variant table

There is currently no description for this property.


Method Descriptions

void build ( Dictionary p_triggers )

Puts all the triggers added to this builder into the given Dictionary.


void cannot_update ( String p_column )

Adds a trigger that will prevent the given column from being updated.


void force_current_time ( String p_column )

Adds a trigger that will force the given column to be set to the current time on insert and update.


void force_current_time_on_insert ( String p_column )

Adds a trigger that will force the given column to be set to the current time on insert.


void force_current_time_on_update ( String p_column )

Adds a trigger that will force the given column to be set to the current time on update.


void force_default ( String p_column )

Adds a trigger that will force the given column to its default value on insert and prevent it being updated later.


void force_default_on_insert ( String p_column )

Adds a trigger that will force the given column to its default value on insert.


void force_value ( String p_column, String p_value )

Adds a trigger that will force the given column to be the given value on insert and prevent it being updated later.


void force_value_on_insert ( String p_column, String p_value )

Adds a trigger that will force the given column to be the given value on insert.


void force_value_on_update ( String p_column, String p_value )

Adds a trigger that will force the given column to be the given value on update.


void optional_default ( String p_column )

Convenience alias for optional_default_on_insert.


void optional_default_on_insert ( String p_column )

Adds a trigger that will set the given column to its default if NULL is inserted. Won't do anything if the column has no default, or that default is NULL.