Coverage for /Users/davegaeddert/Developer/dropseed/plain/plain-models/plain/models/sql/constants.py: 100%
8 statements
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-23 11:16 -0600
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-23 11:16 -0600
1"""
2Constants specific to the SQL storage portion of the ORM.
3"""
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
9# Namedtuples for sql.* internal use.
11# How many results to expect from a cursor.execute call
12MULTI = "multi"
13SINGLE = "single"
14CURSOR = "cursor"
15NO_RESULTS = "no results"
17ORDER_DIR = {
18 "ASC": ("ASC", "DESC"),
19 "DESC": ("DESC", "ASC"),
20}
22# SQL join types.
23INNER = "INNER JOIN"
24LOUTER = "LEFT OUTER JOIN"