K
K
Kekatoz2021-02-17 15:14:07
MySQL
Kekatoz, 2021-02-17 15:14:07

How to configure YAML or JSON file to connect to MySQL and retrieve data from it?

How to configure YAML or JSON file to connect to MySQL and retrieve data from it?
Database on a computer. You need to create a file in which there will be a config for connecting to the database and requests for extracting files.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
DevMan, 2021-02-17
@Kekatoz

no way.
in the configs, you can specify the connection parameters and the necessary requests. and already give this config to the code, which will sausage.
so decide what you need it for and what language you will use.

V
Vasily Bannikov, 2021-02-17
@vabka

Well something like:

connectionString: "строка подключения"
queries: 
  - "SELECT..."
  - "SELECT..."

R
Rsa97, 2021-02-17
@Rsa97

The MySQL DBMS itself does not understand either JSON or YAML, you need a client that connects to it and receives / changes / deletes data with SQL queries.
So, as you write in the client, use this config format.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question