chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:17:40 +08:00
commit f1825c8ceb
10096 changed files with 2364182 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
from enum import Enum
from ray.util.annotations import PublicAPI
@PublicAPI(stability="alpha")
class SaveMode(str, Enum):
"""Enum of possible modes for saving/writing data."""
"""Create new data and error if data already exists."""
CREATE = "create"
"""Add new data without modifying existing data."""
APPEND = "append"
"""Replace all existing data with new data."""
OVERWRITE = "overwrite"
"""Don't write if data already exists."""
IGNORE = "ignore"
"""Raise an error if data already exists."""
ERROR = "error"
"""Update existing rows that match on key fields, or insert new rows.
Requires identifier/key fields to be specified.
"""
UPSERT = "upsert"