morpheus4j
Version:
Morpheus is a migration tool for Neo4j. It aims to be a simple and intuitive way to migrate your database.
23 lines (22 loc) • 810 B
TypeScript
import { Neo4jConfig } from '../types';
interface PreparedMigration {
description: string;
statements: string[];
version: string;
}
export declare class FileService {
private readonly config;
private readonly migrationsPath;
constructor(config: Neo4jConfig);
compareVersions(v1: string, v2: string): number;
getFileContent(fileName: string): Promise<string>;
getFileNamesFromMigrationsFolder(): Promise<string[]>;
getMigrationDescriptionFromFileName(fileName: string): string;
getMigrationVersionFromFileName(fileName: string): string;
prepareMigration(fileName: string): Promise<PreparedMigration>;
private createMigrationsFolder;
private isValidMigrationFile;
private resolveMigrationsPath;
private splitFileContentIntoStatements;
}
export {};