Skip to content

Commit

Permalink
Create utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 authored Apr 26, 2021
1 parent d99d62d commit 13f1e80
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions model_subscription/utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
def can_return_rows_from_bulk_insert(connection):
return (
getattr(
connection.features,
"can_return_ids_from_bulk_insert",
getattr(
connection.features,
"can_return_rows_from_bulk_insert",
False,
),
)
)

0 comments on commit 13f1e80

Please sign in to comment.