mirror of
https://github.com/thecyberlearn/chat-backend.git
synced 2026-08-18 21:52:53 +00:00
Features: - Django REST API backend - Multi-strategy web scraping system (Beautiful Soup, Playwright, Firecrawl) - Anti-detection features (proxy rotation, user-agent rotation) - Data export functionality (JSON, CSV, TXT) - Business and CrawledPage models - Enhanced crawling service with fallback mechanisms 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
27 lines
599 B
Python
27 lines
599 B
Python
"""
|
|
Constants specific to the SQL storage portion of the ORM.
|
|
"""
|
|
|
|
# Size of each "chunk" for get_iterator calls.
|
|
# Larger values are slightly faster at the expense of more storage space.
|
|
GET_ITERATOR_CHUNK_SIZE = 100
|
|
|
|
# Namedtuples for sql.* internal use.
|
|
|
|
# How many results to expect from a cursor.execute call
|
|
MULTI = "multi"
|
|
SINGLE = "single"
|
|
NO_RESULTS = "no results"
|
|
# Rather than returning results, returns:
|
|
CURSOR = "cursor"
|
|
ROW_COUNT = "row count"
|
|
|
|
ORDER_DIR = {
|
|
"ASC": ("ASC", "DESC"),
|
|
"DESC": ("DESC", "ASC"),
|
|
}
|
|
|
|
# SQL join types.
|
|
INNER = "INNER JOIN"
|
|
LOUTER = "LEFT OUTER JOIN"
|