Khafra.Serialize (khafra_search v0.3.0)

Handle serialization needs of schemas and search tables.

Much of the functionality will depend on schema having implemented Khafra.SearchBehaviour

Link to this section Summary

Functions

Return a flat list of string keys that map to search values. Accepts a full SQL query; a row result (ecto schema struct) or a keyword list row return from SQL

Return a list of search table fields derived from a database schema

A schema mapped to a search table name. If a non-schema is passed its assumed to already be a valid table name

Return a flat list of value from an entity

Link to this section Functions

Return a flat list of string keys that map to search values. Accepts a full SQL query; a row result (ecto schema struct) or a keyword list row return from SQL

Link to this function

search_table_schema(arg1)

Return a list of search table fields derived from a database schema

Link to this function

table_name(schema)

A schema mapped to a search table name. If a non-schema is passed its assumed to already be a valid table name

Return a flat list of value from an entity