public function getTriggers($table = NULL)
{
$q = "SELECT TRIM(RDB\$TRIGGER_NAME)\n\t\t\tFROM RDB\$TRIGGERS\n\t\t\tWHERE RDB\$SYSTEM_FLAG = 0";
$q .= $table === NULL ? ';' : " AND RDB\$RELATION_NAME = UPPER('{$table}')";
$res = $this->query($q);
$triggers = [];
while ($row = $res->fetch(FALSE)) {
$triggers[] = $row[0];
}
return $triggers;
}