def insert(self): d = [dict(zip(FIELDS, [who, uid, rrange(1,5)])) for who, uid in randName()] return self.users.insert().execute(*d).rowcount
def insert(self): for who, uid in randName(): self.users(**dict(zip(FIELDS, [who, uid, rrange(1,5)])))
def insert(self): for who, userid in randName(): Users(login=who, userid=userid, projid=rand(1, 5))
def insert(self): d = [ dict(zip(FIELDS, [who, uid, rrange(1, 5)])) for who, uid in randName() ] return self.users.insert().execute(*d).rowcount
def insert(self): self.ses.add_all( Users(login=who, userid=userid, projid=rand(1, 5)) \ for who, userid in randName() ) self.ses.commit()