Doubt: How to check Apicurio is correctly using the database?
See original GitHub issueHi guys and @EricWittmann one doubt. I have changed the source db to Postgresql by changing config in datasource and the system-properties part and also initialized with DDL and set “apicurio.hub.storage.jdbc.init” to false. Everything is running fine and apis created are stored and retrieved. But I have a doubt, when I queried the database tables it always shows “0 rows” like data is empty. I thought it is not fetching correctly so i intentionally put the wrong password in xml. I got an error while “Init” showing invalid password and there aren’t any other database related Apicurio, when queried with \l.
Looks like everything is fine… but how to check if it is correctly using the database. Thanks.
Also apart from the documentation, I changed below configuration from:
<default-bindings context-service="java:jboss/ee/concurrency/context/default" datasource="java:jboss/datasources/ExampleDS"
to
<default-bindings context-service="java:jboss/ee/concurrency/context/default" datasource="java:jboss/datasources/ApicurioDS"
because initially I faced an issue, while starting the server i got an error stating that ExampleDS is not intiated.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
I’m glad you figured it out. I was just going to ask if you’d double-checked that you were querying within the correct postgresql database. 😃 Awesome that it’s working!
Hi Eric,
Apologies. Since I am new to PostgreSQL. I didn’t know how to query inside the apicurio database. I queried outside the database and got 0 rows. Now I am able to see the APIs data. Very thanks for helping with other issue.