Database in work. Added connection pool, etc

This commit is contained in:
2026-05-12 21:43:18 +03:00
parent 99800e9d37
commit efa3cb63b9
38 changed files with 589 additions and 104 deletions
@@ -1,6 +1,6 @@
package commands
import collection.CollectionManager
import database.Repository
import kotlinx.serialization.Contextual
import kotlinx.serialization.Serializable
import models.HumanBeing
@@ -10,7 +10,7 @@ import network.Response
* Выводит любой элемент с минимальным значением поля [HumanBeing.name].
*/
@Serializable
class MinByNameCommand(@Contextual private val manager: CollectionManager) : Command {
class MinByNameCommand(@Contextual private val manager: Repository) : Command {
override val name = "min_by_name"
override val description = "вывести элемент с минимальным именем"
override val type = CommandType.SIMPLE