Beispiel #1
0
    def _insert(self, objs, fields, schema=None, **kwargs):
        if schema == None:  # add schema
            import inspect
            fx = inspect.stack()
            error_detail = ""
            for x in fx:
                error_detail += "\n\t {0}, line {1}".format(fx[1], fx[2])
            raise (Exception(
                "can not call ''{1}'' without schema in '{0}'.\nDetail:\n{2}".
                format(__file__, "Manager._insert", error_detail)))

        #model, objs, fields, return_id=False, raw=False, using=None, schema = None
        # kwargs.update({"schema": self.get_db_schema()})
        return insert_query(self.model, objs, fields, schema=schema, **kwargs)
Beispiel #2
0
 def _insert(self, objs, fields, **kwargs):
     return insert_query(self.model, objs, fields, **kwargs)
Beispiel #3
0
 def _insert(self, values, **kwargs):
     return insert_query(self.model, values, **kwargs)
 def _insert(self, values, **kwargs):
     return insert_query(self.model, values, **kwargs)