工具函数生成器模块,用于生成辅助性的数据库操作函数。
此模块专注于生成与数据库操作相关的辅助函数,如 exists?/1 和 count/1 等。
exists?/1
count/1
生成其他辅助函数。
schema
repo
filters
iex> LibEctoV2.FunctionGenerators.Utils.generate_other_funcs(MyApp.User, MyApp.Repo, [:id, :name]) quote do # 各种辅助函数的定义 end