@@ -120,7 +120,7 @@ def remove(self):
120120
121121 def get_related (self , column_name : str ):
122122 """
123- some_pokemon .get_related('trainer')
123+ some_band .get_related('trainer')
124124 """
125125 cls = self .__class__
126126
@@ -204,8 +204,8 @@ def select(cls, *column_names: str) -> Select:
204204 @classmethod
205205 def insert (cls , * rows : 'Table' ) -> Insert :
206206 """
207- await Pokemon .insert(
208- Pokemon (name="jigglypuff", power=500, trainer="florence")
207+ await Band .insert(
208+ Band (name="jigglypuff", power=500, trainer="florence")
209209 ).run()
210210 """
211211 query = Insert (
@@ -218,8 +218,8 @@ def insert(cls, *rows: 'Table') -> Insert:
218218 @classmethod
219219 def update (cls , ** columns ) -> Update :
220220 """
221- await Pokemon .update(name='raichu').where(
222- Pokemon .name='pikachu'
221+ await Band .update(name='raichu').where(
222+ Band .name='pikachu'
223223 ).run()
224224 """
225225 columns_str = ', ' .join ([
@@ -235,7 +235,7 @@ def update(cls, **columns) -> Update:
235235 @classmethod
236236 def delete (cls ) -> Delete :
237237 """
238- await Pokemon .delete().where(Pokemon .name == 'weedle').run()
238+ await Band .delete().where(Band .name == 'weedle').run()
239239 """
240240 return Delete (
241241 table = cls
@@ -246,7 +246,7 @@ def create(cls) -> Create:
246246 """
247247 Create table, along with all columns.
248248
249- await Pokemon .create().run()
249+ await Band .create().run()
250250 """
251251 return Create (
252252 table = cls ,
@@ -257,7 +257,7 @@ def create_without_columns(cls) -> Raw:
257257 """
258258 Create the table, but with no columns (useful for migrations).
259259
260- await Pokemon .create().run()
260+ await Band .create().run()
261261 """
262262 return Raw (
263263 table = cls ,
@@ -269,7 +269,7 @@ def drop(cls) -> Drop:
269269 """
270270 Drops the table.
271271
272- await Pokemon .drop().run()
272+ await Band .drop().run()
273273 """
274274 return Drop (
275275 table = cls ,
@@ -278,7 +278,7 @@ def drop(cls) -> Drop:
278278 @classmethod
279279 def raw (cls , sql : str ) -> Raw :
280280 """
281- await Pokemon .raw('select * from foo')
281+ await Band .raw('select * from foo')
282282 """
283283 return Raw (
284284 table = cls ,
@@ -288,7 +288,7 @@ def raw(cls, sql: str) -> Raw:
288288 @classmethod
289289 def alter (cls ) -> Alter :
290290 """
291- await Pokemon .alter().rename(Pokemon .power, 'rating')
291+ await Band .alter().rename(Band .power, 'rating')
292292 """
293293 return Alter (
294294 table = cls ,
0 commit comments