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