flask_restful_dbbase.resources.CollectionModelResource.get_key_names

classmethod CollectionModelResource.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