passerine.db.metadata.helper

Note

This page is automatically generated. If you don’t see anything, this means this sub-module is not meant to be used. If you really want to know what it is, please check out the source code at passerine/db/metadata/helper.py.

class passerine.db.metadata.helper.EntityMetadataHelper

Entity Metadata Helper

static extract()

Extract the metadata of the given class

Parameters:cls (type) – the entity class
Return type:passerine.db.metadata.entity.EntityMetadata
static hasMetadata()

Check if the given class cls has a metadata

Parameters:cls (type) – the entity class
Return type:bool
static imprint(collection_name, indexes)

Imprint the entity metadata to the class (type)

Parameters:
  • cls (type) – the entity class
  • collection_name (str) – the name of the collection (known as table, bucket etc.)
  • indexes (list) – the list of indexes