`using` on demand, is it possible?

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.

1 Like

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