From 0852da183e449a34df8097bf4e9283afcf5f27e9 Mon Sep 17 00:00:00 2001 From: Simon Gockner Date: Fri, 24 Jan 2020 16:07:37 +0100 Subject: [PATCH] - add gbase interface - support adding and removing of tables --- GBase/Interfaces/IGBase.cs | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 GBase/Interfaces/IGBase.cs diff --git a/GBase/Interfaces/IGBase.cs b/GBase/Interfaces/IGBase.cs new file mode 100644 index 0000000..3dc13bc --- /dev/null +++ b/GBase/Interfaces/IGBase.cs @@ -0,0 +1,44 @@ +// Author: Gockner, Simon +// Created: 2020-01-24 +// Copyright(c) 2020 SimonG. All Rights Reserved. + +using System; +using System.Collections.Generic; +using System.Threading; +using System.Threading.Tasks; + +namespace GBase.Interfaces +{ + /// + /// The base class of the GBase database + /// + public interface IGBase : IAsyncDisposable + { + /// + /// The s of this + /// + List Tables { get; } + + + /// + /// Initialize this + /// + /// A to cancel the asynchronous operation + /// True if successful, false if not + Task Init(CancellationToken cancellationToken); + + /// + /// Add a given to this + /// + /// The given + /// True if successful, false if not + bool AddTable(IGBaseTable table); + + /// + /// Removes a given from this + /// + /// The given + /// True if successful, false if not + bool RemoveTable(IGBaseTable table); + } +} \ No newline at end of file