flask_restful_dbbase.resources.DBBaseResource.get_key_names

classmethod DBBaseResource.get_key_names(formatted=False)[source]

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