Coverage for src/prisma/_constants.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2024-04-28 15:17 +0000

1from typing import Dict 

2from datetime import timedelta 

3 

4DEFAULT_CONNECT_TIMEOUT: timedelta = timedelta(seconds=10) 

5DEFAULT_TX_MAX_WAIT: timedelta = timedelta(milliseconds=2000) 

6DEFAULT_TX_TIMEOUT: timedelta = timedelta(milliseconds=5000) 

7 

8# key aliases to transform query arguments to make them more pythonic 

9QUERY_BUILDER_ALIASES: Dict[str, str] = { 

10 'startswith': 'startsWith', 

11 'has_every': 'hasEvery', 

12 'endswith': 'endsWith', 

13 'has_some': 'hasSome', 

14 'is_empty': 'isEmpty', 

15 'order_by': 'orderBy', 

16 'not_in': 'notIn', 

17 'is_not': 'isNot', 

18}