Skip to content

Commit

Permalink
Add an fts::language type that is encoded as text (#417)
Browse files Browse the repository at this point in the history
I want this in the python bindings sort of ahead of fully commiting to
the plan, since we need python binding support to write proper test
cases.
  • Loading branch information
msullivan authored and fantix committed Sep 22, 2023
1 parent 8a4ed30 commit 9e7d2d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions edgedb/protocol/codecs/codecs.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,10 @@ cdef register_base_scalar_codecs():
config_memory_encode,
config_memory_decode)

register_base_scalar_codec(
'fts::language',
pgproto.text_encode,
pgproto.text_decode)

register_base_scalar_codec(
'ext::pgvector::vector',
Expand Down
3 changes: 2 additions & 1 deletion edgedb/protocol/codecs/edb_types.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ TYPE_IDS = {
'std::bigint': uuid.UUID('00000000-0000-0000-0000-000000000110'),
'cal::relative_duration': uuid.UUID('00000000-0000-0000-0000-000000000111'),
'cal::date_duration': uuid.UUID('00000000-0000-0000-0000-000000000112'),
'cfg::memory': uuid.UUID('00000000-0000-0000-0000-000000000130')
'cfg::memory': uuid.UUID('00000000-0000-0000-0000-000000000130'),
'fts::language': uuid.UUID('00000000-0000-0000-0000-000000000140'),
}

0 comments on commit 9e7d2d2

Please sign in to comment.