blob: ed4590fc318df72dd700527364321ef1c8d665e3 [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package io.v.syncbase.v23.services.syncbase.nosql;
import io.v.v23.context.VContext;
import io.v.v23.verror.VException;
class SchemaManager {
private final DatabaseClient client;
SchemaManager(String dbFullName) {
this.client = DatabaseClientFactory.getDatabaseClient(dbFullName);
}
SchemaMetadata getSchemaMetadata(VContext ctx) throws VException {
return this.client.getSchemaMetadata(ctx);
}
void setSchemaMetadata(VContext ctx, SchemaMetadata metadata) throws VException {
this.client.setSchemaMetadata(ctx, metadata);
}
}