:py:mod:`bento_meta.mdb.writeable` ================================== .. py:module:: bento_meta.mdb.writeable .. autoapi-nested-parse:: mdb.writeable: subclass of `class:bento_meta.MDB` to support writing to an MDB Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: bento_meta.mdb.writeable.WriteableMDB Functions ~~~~~~~~~ .. autoapisummary:: bento_meta.mdb.writeable.write_txn .. py:function:: write_txn(func) Decorates a query function to run a write transaction based on its query. Query function should return a tuple (qry_string, param_dict). .. py:class:: WriteableMDB(*args, **kwargs) Bases: :py:obj:`bento_meta.mdb.MDB` .. py:method:: put_with_statement(qry, parms={}) Run an arbitrary write statement. .. py:method:: put_term_with_origin(term, commit='', _from=1) Merge a bento-meta Term object, that has an Origin object set, into an MDB. If a new term is created, assign a random 6-char nanoid to it. The Origin must already be represented in the database. :param Term term: Term object :param str commit: GitHub commit SHA1 associated with the term (if any)