code: public void setCurrentSchema(final String schemaName) {
          if (isSwitchFailed()) {
              throw new ShardingException("Failed to switch schema, please terminate current transaction.");
          }
          this.schemaName = schemaName;
          this.logicSchema = LogicSchemas.getInstance().getLogicSchema(schemaName);
      }
docs: Change logic schema of current channel.
  
  @param schemaName schema name