flask_restful_dbbase.resources.ModelResource.get_key_names

classmethod ModelResource.get_key_names(formatted=False)

This function returns column names marked as primary_key.

Parameters:

formatted – (bool) : will return in form [<int:id>]

Returns:

key_names (list) – a list of keys is returned