Class SchemaService
- java.lang.Object
-
- io.javaoperatorsdk.operator.sample.schema.SchemaService
-
public class SchemaService extends Object
-
-
Constructor Summary
Constructors Constructor Description SchemaService(MySQLDbConfig mySQLDbConfig)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SchemacreateSchemaAndRelatedUser(Connection connection, String schemaName, String encoding, String userName, String password)static voiddeleteSchemaAndRelatedUser(Connection connection, String schemaName, String userName)Optional<Schema>getSchema(String name)static Optional<Schema>getSchema(Connection connection, String schemaName)static booleanschemaExists(Connection connection, String schemaName)
-
-
-
Constructor Detail
-
SchemaService
public SchemaService(MySQLDbConfig mySQLDbConfig)
-
-
Method Detail
-
createSchemaAndRelatedUser
public static Schema createSchemaAndRelatedUser(Connection connection, String schemaName, String encoding, String userName, String password)
-
deleteSchemaAndRelatedUser
public static void deleteSchemaAndRelatedUser(Connection connection, String schemaName, String userName)
-
schemaExists
public static boolean schemaExists(Connection connection, String schemaName)
-
getSchema
public static Optional<Schema> getSchema(Connection connection, String schemaName)
-
-