Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to designate a function for DB setup & automatically run it #7

Open
camsaul opened this issue Feb 1, 2017 · 0 comments

Comments

@camsaul
Copy link
Member

camsaul commented Feb 1, 2017

Slightly inconvenient that we have to call appropriate DB setup functions when using from the REPL, e.g. in Metabase:

(metabase.db/setup-db-if-needed!)

It would be more convenient if we could tag a certain function as the DB setup function:

(defn ^:toucan/setup-fn setup-db-if-needed! []
 ...)

and have Toucan automatically find and run this function using the namespace tools if the DB is not yet set up.

@camsaul camsaul changed the title Add ability to designate a function for DB setup Add ability to designate a function for DB setup & automatically run it Feb 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant