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