Skip to content

Commit 8692009

Browse files
committed
Add deprecation notice
Mostly a note to myself
1 parent 9f4d34d commit 8692009

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/feeb/db/query.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ defmodule Feeb.DB.Query do
3636
Compiling an adhoc query is useful when you want to select custom fields
3737
off of a "select *" query. It's like a subset of the original query
3838
"""
39+
@spec compile_adhoc_query(term, term) :: no_return
3940
def compile_adhoc_query({context, domain, query_name} = query_id, custom_fields) do
41+
raise "Deprecated; consider implementing this feature as part of `get_templated_query_id/3`"
4042
query_name = :"#{query_name}$#{Enum.join(custom_fields, "$")}"
4143
adhoc_query_id = {context, domain, query_name}
4244

0 commit comments

Comments
 (0)