@@ -35,7 +35,13 @@ import {
3535 PersistedDatabaseItem ,
3636} from "./local-databases/database-item" ;
3737import { DatabaseItemImpl } from "./local-databases/database-item-impl" ;
38+ import {
39+ DatabaseContents ,
40+ DatabaseContentsWithDbScheme ,
41+ DatabaseKind ,
42+ } from "./local-databases/database-contents" ;
3843
44+ export { DatabaseContentsWithDbScheme } from "./local-databases/database-contents" ;
3945export { DatabaseItem } from "./local-databases/database-item" ;
4046
4147/**
@@ -60,35 +66,6 @@ const CURRENT_DB = "currentDatabase";
6066 */
6167const DB_LIST = "databaseList" ;
6268
63- /**
64- * The layout of the database.
65- */
66- export enum DatabaseKind {
67- /** A CodeQL database */
68- Database ,
69- /** A raw QL dataset */
70- RawDataset ,
71- }
72-
73- export interface DatabaseContents {
74- /** The layout of the database */
75- kind : DatabaseKind ;
76- /**
77- * The name of the database.
78- */
79- name : string ;
80- /** The URI of the QL dataset within the database. */
81- datasetUri : vscode . Uri ;
82- /** The URI of the source archive within the database, if one exists. */
83- sourceArchiveUri ?: vscode . Uri ;
84- /** The URI of the CodeQL database scheme within the database, if exactly one exists. */
85- dbSchemeUri ?: vscode . Uri ;
86- }
87-
88- export interface DatabaseContentsWithDbScheme extends DatabaseContents {
89- dbSchemeUri : vscode . Uri ; // Always present
90- }
91-
9269/**
9370 * An error thrown when we cannot find a valid database in a putative
9471 * database directory.
0 commit comments