Skip to content

Commit

Permalink
Merge pull request #339 from Bhashinee/main
Browse files Browse the repository at this point in the history
Update the code to reflect the new language plugin changes
  • Loading branch information
Bhashinee authored Mar 20, 2024
2 parents c4e9239 + 3e0427c commit 019513c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ mySqlDriverVersion=8.0.29
mssqlDriverVersion=11.2.3.jre17
postgresqlDriverVersion=42.6.0

ballerinaLangVersion=2201.9.0-20240229-103900-a949e6d4
ballerinaLangVersion=2201.9.0-20240319-094400-0453ecf0

# Level 01
stdlibIoVersion=1.6.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import io.ballerina.persist.nodegenerator.syntax.utils.TomlSyntaxUtils;
import io.ballerina.persist.utils.BalProjectUtils;
import io.ballerina.projects.buildtools.CodeGeneratorTool;
import io.ballerina.projects.buildtools.ToolConfig;
import io.ballerina.projects.buildtools.ToolContext;
import io.ballerina.projects.util.ProjectUtils;

Expand All @@ -45,6 +46,7 @@
import static io.ballerina.persist.PersistToolsConstants.TARGET_MODULE;
import static io.ballerina.projects.util.ProjectConstants.BALLERINA_TOML;

@ToolConfig(name = "persist")
public class PersistCodeGeneratorTool implements CodeGeneratorTool {

private static final PrintStream errStream = System.err;
Expand Down Expand Up @@ -155,11 +157,6 @@ public static String readFileToString(Path filePath) throws IOException {
return new String(fileContent, StandardCharsets.UTF_8);
}

@Override
public String toolName() {
return "persist";
}

private void validateDatastore(String datastore) throws BalException {
if (!PersistToolsConstants.SUPPORTED_DB_PROVIDERS.contains(datastore)) {
throw new BalException(String.format("the persist layer supports one of data stores: %s" +
Expand Down

0 comments on commit 019513c

Please sign in to comment.