getFieldQueryAttributes static method

String getFieldQueryAttributes(
  1. Map<String, dynamic> field
)

Implementation

static String getFieldQueryAttributes(Map<String,dynamic >field){
    String result="";
    if(field.containsKey(fieldAttributes)){
        List attributes=field[fieldAttributes];
        attributes.forEach((attribute) {
            switch(attribute){
                case attributeAutoIncrement:
                    // result+=" AUTOINCREMENT";
                    break;
                case attributePrimaryKey:
                    result+=" PRIMARY KEY";
                    break;
                case attributeRequired:
                    result+=" NOT NULL";
                    break;
                case attributeUniqueKey:
                    result+=" UNIQUE";
                    break;
            }
        });
    }
    return result;
}