[tx] Expand TypedValue to include non-namespaced keywords #123
Labels
No labels
A-build
A-cli
A-core
A-design
A-edn
A-ffi
A-query
A-sdk
A-sdk-android
A-sdk-ios
A-sync
A-transact
A-views
A-vocab
P-Android
P-desktop
P-iOS
bug
correctness
dependencies
dev-ergonomics
discussion
documentation
duplicate
enhancement
enquiry
good first bug
good first issue
help wanted
hygiene
in progress
invalid
question
ready
size
speed
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: greg/mentat#123
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For simplicity, in #214 I only handled namespaced keywords, like
:namespaced/keyword
. However, the transactor and query engine can and should handle non-namespaced keywords, like:keyword
. This ticket tracks adding support for such keywords.This ticket is similar to #201, but a little simpler and potentially a little longer, since there are no new
:db.type/*
definitions and no newValueType
. You'll need to:TypedValue
case, preferably by encapsulating the two types of keywords into oneenum Keyword { NamespacedKeyword(...), Keyword(...) }
;TEXT
representation of ":namespaced/keyword" and ":keyword" doesn't overlap;1deed24f42/db/tests/value_tests.rs (L25)
.to_namespaced_keyword
to handle both types of keyword (around1deed24f42/db/src/lib.rs (L42)
)