-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tgsql): Addd client variable 'display.implicit'
- Loading branch information
Showing
11 changed files
with
233 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 17 additions & 4 deletions
21
modules/tgsql/core/src/main/java/com/tsurugidb/tgsql/core/executor/report/BasicReporter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,44 @@ | ||
package com.tsurugidb.tgsql.core.executor.report; | ||
|
||
import javax.annotation.Nonnull; | ||
|
||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
import com.tsurugidb.tgsql.core.config.TgsqlConfig; | ||
|
||
/** | ||
* A basic implementation of {@link TgsqlReporter}. | ||
*/ | ||
public class BasicReporter extends TgsqlReporter { | ||
private static final Logger LOG = LoggerFactory.getLogger(BasicReporter.class); | ||
|
||
/** | ||
* Creates a new instance. | ||
* | ||
* @param config tgsql configuration | ||
*/ | ||
public BasicReporter(@Nonnull TgsqlConfig config) { | ||
super(config); | ||
} | ||
|
||
@Override | ||
public void info(String message) { | ||
protected void doInfo(String message) { | ||
LOG.info(message); | ||
} | ||
|
||
@Override | ||
public void implicit(String message) { | ||
protected void doImplicit(String message) { | ||
LOG.debug(message); | ||
} | ||
|
||
@Override | ||
public void succeed(String message) { | ||
protected void doSucceed(String message) { | ||
LOG.info(message); | ||
} | ||
|
||
@Override | ||
public void warn(String message) { | ||
protected void doWarn(String message) { | ||
LOG.warn(message); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.