public void dropSchema()

in paimon-trino-common/src/main/java/org/apache/paimon/trino/TrinoMetadataBase.java [107:118]


    public void dropSchema(ConnectorSession session, String schemaName) {
        checkArgument(
                !StringUtils.isNullOrWhitespaceOnly(schemaName),
                "schemaName cannot be null or empty");
        try {
            catalog.dropDatabase(schemaName, false, true);
        } catch (Catalog.DatabaseNotEmptyException e) {
            throw new RuntimeException(format("database is not empty: '%s'", schemaName));
        } catch (Catalog.DatabaseNotExistException e) {
            throw new RuntimeException(format("database not exists: '%s'", schemaName));
        }
    }