How to make single jdbc connection to sql server in logstash configuration instead of making connection everytime to each table

I have 10 sql tables in my database, to index all those tables data i have logstash configuration where i am making jdbc connection to each and every table. Instead of doing that how can i make a connection only once to index all the tables data. can you provide the various types of configurations for logstash