0
peeweeでクエリをカウントすることは可能ですか?次のようにジャンゴにそれを作る :peeweeでSQLクエリカウントを取得
from django.db import connection
print len(connection.queries)
peeweeでクエリをカウントすることは可能ですか?次のようにジャンゴにそれを作る :peeweeでSQLクエリカウントを取得
from django.db import connection
print len(connection.queries)
あなただけのhereのように振る舞うことができます。
def execute(*args, **kwargs):
self.counter += 1 # or put the query into some list, as you like
return super().execute(args, kwargs)
:クエリをカウントするためにそれを設定サブクラス
Database