-
I'm desperate. I do not understand how to start it and where to insert what my dependencies file
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi @bookvik ! Here's a sample dependencies file for postgres that should work:
Be also mindful of #11 (which should be fixed now though); If the driver cannot be found on classpath for some reason there is always an easy workaround - just put the driver jar into the /lib folder. Then you define a system that initiates a connection pool to that DB upon t-boa startup as described here: Then you can reference that connection pool from you workflow steps or you can straight away use pre-defined jdbc tasklet: Also if you want to write some custom code and access given data source object directly, you could do it like this from clojure code: (get-in @titanoboa.system/systems-state data-source-ks) where Hope this helps, let me know if it does not. |
Beta Was this translation helpful? Give feedback.
-
@bookvik also if you want to use that Postgres DB as an archive storage for archived workflow jobs, see how it is configured e.g. here: As a part of system config you should include |
Beta Was this translation helpful? Give feedback.
Hi @bookvik !
thanks for reaching out, I might look into documenting this a bit better to make sure everything is in one place and people do not get confused. Here are some examples that usually work for me to connect to a database and to query it:
Here's a sample dependencies file for postgres that should work:
Be also mindful of #11 (which should be fixed now though); I…