You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to elixir-ecto
Working with sqlite I created a schema for `pragma_table_info(?)`. But in a query I can either use `fragment("pragma_table_info(?)", table_name)` or `{"pragma_table_info('hardcoded_table_name')", Schema}`. I'm wondering if there could be an API to make an arbitrary source in a query be mapped to a given schema.
benjamin...@gmail.com
unread,
Mar 5, 2025, 12:46:57 PMMar 5
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
You could use the enumerable example in the readme and implement a collectable for your schema to map the result, or convert the column from string to atom and leverage struct/2.