`using` on demand, is it possible?


#1

Hi guys!

I have a package that needs to use ODBC.jl for some tasks. However, the compilation time and import time is huge. Hence, I am wondering: is there a way to import packages “on demand”? For example, I just need this package when the user calls the function connect_db.


#2

Here is the implementation of check_import function in FileIO.jl that provides a similar feature: