getUpdateValue function

String getUpdateValue(
  1. SqfEntityFieldType field,
  2. DeleteRule rule
)

Implementation

String getUpdateValue(SqfEntityFieldType field, DeleteRule rule) {
  switch (rule) {
    case DeleteRule.SET_DEFAULT_VALUE:
      return getDefaultValue(field);
    case DeleteRule.SET_NULL:
      return 'null';
    default:
      return 'null';
  }
}