Coverage for /Users/davegaeddert/Development/dropseed/plain/plain-models/plain/models/sql/constants.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2024-10-16 22:04 -0500

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" 

14CURSOR = "cursor" 

15NO_RESULTS = "no results" 

16 

17ORDER_DIR = { 

18 "ASC": ("ASC", "DESC"), 

19 "DESC": ("DESC", "ASC"), 

20} 

21 

22# SQL join types. 

23INNER = "INNER JOIN" 

24LOUTER = "LEFT OUTER JOIN"