This function is used for selecting row(s) from current table.
(self, condition=None)
| 103 | self.execute('END TRANSACTION') |
| 104 | |
| 105 | def select(self, condition=None): |
| 106 | """ |
| 107 | This function is used for selecting row(s) from current table. |
| 108 | """ |
| 109 | _ = 'SELECT * FROM %s' % self.name |
| 110 | if condition: |
| 111 | _ += 'WHERE %s' % condition |
| 112 | return self.execute(_) |
| 113 | |
| 114 | def createTable(self, tblname, columns=None, typeless=False): |
| 115 | """ |