mirror of
https://github.com/pikami/cosmium.git
synced 2026-06-10 06:18:09 +01:00
36fd7f48cc
* Add ETag optimistic concurrency for document replace Co-authored-by: Pijus Kamandulis <pikami@users.noreply.github.com> * Expose precondition error code header Co-authored-by: Pijus Kamandulis <pikami@users.noreply.github.com> * Stop Badger GC before closing datastore Co-authored-by: Pijus Kamandulis <pikami@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
25 lines
862 B
Go
25 lines
862 B
Go
package headers
|
|
|
|
const (
|
|
AIM = "A-Im"
|
|
Authorization = "authorization"
|
|
CosmosLsn = "x-ms-cosmos-llsn"
|
|
ErrorCode = "x-ms-error-code"
|
|
ETag = "etag"
|
|
GlobalCommittedLsn = "x-ms-global-committed-lsn"
|
|
IfMatch = "if-match"
|
|
IfNoneMatch = "if-none-match"
|
|
IsBatchRequest = "x-ms-cosmos-is-batch-request"
|
|
IsQueryPlanRequest = "x-ms-cosmos-is-query-plan-request"
|
|
IsUpsert = "x-ms-documentdb-is-upsert"
|
|
ItemCount = "x-ms-item-count"
|
|
LSN = "lsn"
|
|
XDate = "x-ms-date"
|
|
MaxItemCount = "x-ms-max-item-count"
|
|
ContinuationToken = "x-ms-continuation"
|
|
|
|
// Kinda retarded, but what can I do ¯\_(ツ)_/¯
|
|
IsQuery = "x-ms-documentdb-isquery" // Sent from python sdk and web explorer
|
|
Query = "x-ms-documentdb-query" // Sent from Go sdk
|
|
)
|