(self, name:str, columns=None)
| 222 | self._execute(create_db) |
| 223 | |
| 224 | def create_table(self, name:str, columns=None): |
| 225 | try: |
| 226 | dbexists = self._check_exists_db(self._database) |
| 227 | if dbexists: |
| 228 | sentence = f""" |
| 229 | CREATE TABLE IF NOT EXISTS public.{name}() |
| 230 | """ |
| 231 | self._execute(sentence) |
| 232 | if self.check_exists_table(name): |
| 233 | self.create_columns(name, columns) |
| 234 | except Exception as e: |
| 235 | raise e |
| 236 | |
| 237 | def create_columns(self, tablename:str, columns): |
| 238 | try: |
nothing calls this directly
no test coverage detected