Files
vscode-codeql/extensions/ql-vscode/src/databases/local-databases/database-contents.ts
2024-01-05 17:13:45 +01:00

31 lines
741 B
TypeScript

import type { Uri } from "vscode";
/**
* The layout of the database.
*/
export enum DatabaseKind {
/** A CodeQL database */
Database,
/** A raw QL dataset */
RawDataset,
}
export interface DatabaseContents {
/** The layout of the database */
kind: DatabaseKind;
/**
* The name of the database.
*/
name: string;
/** The URI of the QL dataset within the database. */
datasetUri: Uri;
/** The URI of the source archive within the database, if one exists. */
sourceArchiveUri?: Uri;
/** The URI of the CodeQL database scheme within the database, if exactly one exists. */
dbSchemeUri?: Uri;
}
export interface DatabaseContentsWithDbScheme extends DatabaseContents {
dbSchemeUri: Uri; // Always present
}