miniSql

创建
zgc123@gmail.com authored at 11/19/2023 1:40:15 AM
6136600
Tree
0 Parent(s)
Summary: 1 changed files with 29 additions and 0 deletions.
Added +29 -0
Added +29 -0
diff --git a/minisqlquery-master/src/MiniSqlQuery.Core/ICompletionProvider.cs b/minisqlquery-master/src/MiniSqlQuery.Core/ICompletionProvider.cs
new file mode 100644
index 0000000..584d39f
--- /dev/null
+++ b/minisqlquery-master/src/MiniSqlQuery.Core/ICompletionProvider.cs
@@ -0,0 +1,29 @@
+namespace MiniSqlQuery.Core
+{
+    public interface ICompletionProvider
+    {
+        bool Enabled { get; set; }
+        bool KeyEventHandlerFired(char ch);
+    }
+
+    public class NullCompletionProvider : ICompletionProvider
+    {
+        private readonly bool _enabled;
+
+        public NullCompletionProvider()
+        {
+            _enabled = false;
+        }
+
+        public bool Enabled
+        {
+            get { return _enabled; }
+            set { }
+        }
+
+        public bool KeyEventHandlerFired(char ch)
+        {
+            return false;
+        }
+    }
+}
\ No newline at end of file