Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.10/site-packages/django/db/models/sql/constants.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

9 statements  

1""" 

2Constants specific to the SQL storage portion of the ORM. 

3""" 

4 

5# Size of each "chunk" for get_iterator calls. 

6# Larger values are slightly faster at the expense of more storage space. 

7GET_ITERATOR_CHUNK_SIZE = 100 

8 

9# Namedtuples for sql.* internal use. 

10 

11# How many results to expect from a cursor.execute call 

12MULTI = "multi" 

13SINGLE = "single" 

14NO_RESULTS = "no results" 

15# Rather than returning results, returns: 

16CURSOR = "cursor" 

17ROW_COUNT = "row count" 

18 

19ORDER_DIR = { 

20 "ASC": ("ASC", "DESC"), 

21 "DESC": ("DESC", "ASC"), 

22} 

23 

24# SQL join types. 

25INNER = "INNER JOIN" 

26LOUTER = "LEFT OUTER JOIN"