daily pastebin goal
46%
SHARE
TWEET

Untitled

a guest Feb 19th, 2019 71 in 152 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def count_star(query):
  2.     count_query = (query.statement
  3.                    .with_only_columns([func.count()])
  4.                    .order_by(None))
  5.     return query.session.execute(count_query).scalar()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top