How to share a duckdb database connection to many functions

rdavis120
Thu, 17 Aug 2023 19:37:25 +0000
New to Julia

What is the best practice in Julia to share the a database connection to several functions in a module? Such as a connection from the DBInterface package.

Especially, without exporting the connection variable itself, so that the exported functions do not expose the connection? The database connection would not be a constant because it would be initialized at run time.

2 posts - 2 participants