A
A
Antonio2021-02-02 14:48:01
Java
Antonio, 2021-02-02 14:48:01

How to store SQL queries in an Autotests project?

In an Autotest project, you often need to add queries to test the database. It is inconvenient to support such requests in classes, because they have a volume with a large number of lines. The project uses Java + JDBC to work with the database. So far I'm storing each request in separate files, but I'm not sure if this is the right approach.

How do you store SQL queries?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2021-02-02
@firedragon

So we keep. In text form. For variable fields, we use placeholders, which we replace with the desired values

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question