move parsing class and function

This commit is contained in:
2023-06-01 01:48:57 +02:00
parent 691fd888f5
commit aa1435bb4e
11 changed files with 412 additions and 393 deletions

View File

@@ -1,5 +1,6 @@
package fr.postgresjson.definition
import fr.postgresjson.definition.parse.parseFunction
import java.io.File
import java.net.URL
import java.nio.file.Path
@@ -23,7 +24,7 @@ sealed interface Resource {
Migration(resource, path)
} catch (e: ParseException) {
try {
Function(resource, path)
parseFunction(resource, path)
} catch (e: ParseException) {
try {
Query(resource, path)