blob: facf69b22d23ac3d2acf5b460d8b770aa3ab0020 [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/developer/debug/zxdb/client/setting_schema_definition.h"
#include "src/developer/debug/zxdb/client/filter.h"
#include "src/developer/debug/zxdb/client/setting_schema.h"
#include "src/developer/debug/zxdb/client/system.h"
#include "src/developer/debug/zxdb/client/target.h"
#include "src/developer/debug/zxdb/client/thread.h"
namespace zxdb {
void InitializeSchemas() {
// Will initialize the schemas only once.
static bool initialized = false;
if (initialized)
return;
initialized = true;
// Simply getting the schemas will create them, so we need to make sure we get all of them.
Filter::GetSchema();
System::GetSchema();
Target::GetSchema();
Thread::GetSchema();
}
} // namespace zxdb