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

Checking database state #71

Open
alvaro893 opened this issue Nov 1, 2016 · 3 comments
Open

Checking database state #71

alvaro893 opened this issue Nov 1, 2016 · 3 comments
Labels

Comments

@alvaro893
Copy link

alvaro893 commented Nov 1, 2016

Hi, I am experimenting with this library and javarx, so far I didn't find a method to check whether Database objects are connected or not (for example: no internet connection, db server is down, etc). I guess it can handled with this observable pattern somehow.

Also, besides the README, is there any other document or guide I could use?

@thomasnield
Copy link
Contributor

@alvaro893 doesn't a connection pool like HikariCP (which this library supports) abstract all of that away and take care of that stuff for you? Typically you configure the timeout and other parameters on the HikariCP end if needed, and it will even dispose dead connections and replace with new ones.

Regarding the guide, there is none yet. I may write one for this library like I did with RxJavaFX, especially since I have coworkers that need it.

https://www.gitbook.com/book/thomasnield/rxjavafx-guide/details

I'll let you know when I get around to writing it.

@alvaro893
Copy link
Author

@thomasnield thank you for you response, I wasn't familiar with this HikariCP but I noticed that it was commented in other issues, I going to give it a shot. Very interesting book by the way, may be that I will use it in the future and It will be more than welcomed if do other for this library.

@thomasnield
Copy link
Contributor

@alvaro893 for sure, anytime. Just add HikariCP as a dependency and specify the pool() as shown in the README. And I'll do my best to start the eBook on this library in the next 2-3 weeks. Shouldn't be too much work but I'd like it to be thorough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants