diff --git a/CHANGELOG.md b/CHANGELOG.md index 024396ad1d..28022ff86e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [8.4.1] - Unreleased - Improve Overview Model Generation Speed +- Add Remote Table Without DB Creation Attacher ## [8.4.0] - 2024-12-02 diff --git a/Rdmp.Core/DataLoad/Modules/Attachers/RemoteAttacher.cs b/Rdmp.Core/DataLoad/Modules/Attachers/RemoteAttacher.cs index 0a86fcc5ed..99e5853c54 100644 --- a/Rdmp.Core/DataLoad/Modules/Attachers/RemoteAttacher.cs +++ b/Rdmp.Core/DataLoad/Modules/Attachers/RemoteAttacher.cs @@ -24,7 +24,7 @@ namespace Rdmp.Core.DataLoad.Modules.Attachers; public class RemoteAttacher : Attacher, IPluginAttacher { - public RemoteAttacher() : base(true) { } + public RemoteAttacher(bool requestsExternalDatabaseCreation=true) : base(requestsExternalDatabaseCreation) { } [DemandsInitialization("How far back to pull data from")] public AttacherHistoricalDurations HistoricalFetchDuration { get; set; } diff --git a/Rdmp.Core/DataLoad/Modules/Attachers/RemoteTableAttacher.cs b/Rdmp.Core/DataLoad/Modules/Attachers/RemoteTableAttacher.cs index 51f231e79f..fa7ff3cd9c 100644 --- a/Rdmp.Core/DataLoad/Modules/Attachers/RemoteTableAttacher.cs +++ b/Rdmp.Core/DataLoad/Modules/Attachers/RemoteTableAttacher.cs @@ -37,7 +37,7 @@ public class RemoteTableAttacher : RemoteAttacher { private const string FutureLoadMessage = "Cannot load data from the future"; - public RemoteTableAttacher() : base() + public RemoteTableAttacher(bool requestsExternalDatabaseCreation=true) : base(requestsExternalDatabaseCreation) { } diff --git a/Rdmp.Core/DataLoad/Modules/Attachers/RemoteTableWithoutDBCreationAttacher.cs b/Rdmp.Core/DataLoad/Modules/Attachers/RemoteTableWithoutDBCreationAttacher.cs new file mode 100644 index 0000000000..f0c86ba337 --- /dev/null +++ b/Rdmp.Core/DataLoad/Modules/Attachers/RemoteTableWithoutDBCreationAttacher.cs @@ -0,0 +1,19 @@ +// Copyright (c) The University of Dundee 2024-2024 +// This file is part of the Research Data Management Platform (RDMP). +// RDMP is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +// RDMP is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +// You should have received a copy of the GNU General Public License along with RDMP. If not, see . + + +namespace Rdmp.Core.DataLoad.Modules.Attachers; + +/// +/// Data load component for loading tables with records read from a remote database server. Runs the specified query (which can include a date parameter) +/// and inserts the results of the query into RAW. +/// This attcher does not create RAW if it does not exist. Another attacher will be required to generate the initial RAW database +/// +public class RemoteTableWithoutDBCreationAttacher: RemoteTableAttacher +{ + + public RemoteTableWithoutDBCreationAttacher() : base(false) { } +}