Skip to content

Commit

Permalink
Task/rdmp 250 remote table attacher no raw (HicServices#2083)
Browse files Browse the repository at this point in the history
* add table attacher without db creation

* update docs
  • Loading branch information
JFriel authored Dec 8, 2024
1 parent 9a23265 commit 5fdeaf4
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [8.4.1] - Unreleased

- Add Remote Table Without DB Creation Attacher

## [8.4.0] - 2024-12-02

- Add Ordering to Filters
Expand Down
2 changes: 1 addition & 1 deletion Rdmp.Core/DataLoad/Modules/Attachers/RemoteAttacher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
}

Expand Down
Original file line number Diff line number Diff line change
@@ -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 <https://www.gnu.org/licenses/>.


namespace Rdmp.Core.DataLoad.Modules.Attachers;

/// <summary>
/// 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
/// </summary>
public class RemoteTableWithoutDBCreationAttacher: RemoteTableAttacher
{

public RemoteTableWithoutDBCreationAttacher() : base(false) { }
}

0 comments on commit 5fdeaf4

Please sign in to comment.