From 802457f7136205056396446ec5ce5b48a118a398 Mon Sep 17 00:00:00 2001 From: Marcin Badurowicz Date: Sun, 10 Sep 2023 22:03:41 +0200 Subject: [PATCH] switch to different nuget --- .../FirefoxBookmarkLoader.cs | 10 +++++----- .../Flow.Launcher.Plugin.BrowserBookmark.csproj | 14 +++++++------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.BrowserBookmark/FirefoxBookmarkLoader.cs b/Plugins/Flow.Launcher.Plugin.BrowserBookmark/FirefoxBookmarkLoader.cs index 022f28144..9bd3431cc 100644 --- a/Plugins/Flow.Launcher.Plugin.BrowserBookmark/FirefoxBookmarkLoader.cs +++ b/Plugins/Flow.Launcher.Plugin.BrowserBookmark/FirefoxBookmarkLoader.cs @@ -1,7 +1,7 @@ using Flow.Launcher.Plugin.BrowserBookmark.Models; +using Microsoft.Data.Sqlite; using System; using System.Collections.Generic; -using System.Data.SQLite; using System.IO; using System.Linq; @@ -33,11 +33,11 @@ namespace Flow.Launcher.Plugin.BrowserBookmark // create the connection string and init the connection string dbPath = string.Format(dbPathFormat, placesPath); - using var dbConnection = new SQLiteConnection(dbPath); + using var dbConnection = new SqliteConnection(dbPath); // Open connection to the database file and execute the query dbConnection.Open(); - var reader = new SQLiteCommand(queryAllBookmarks, dbConnection).ExecuteReader(); - + var reader = new SqliteCommand(queryAllBookmarks, dbConnection).ExecuteReader(); + // return results in List format bookmarkList = reader.Select( x => new Bookmark(x["title"] is DBNull ? string.Empty : x["title"].ToString(), @@ -133,7 +133,7 @@ namespace Flow.Launcher.Plugin.BrowserBookmark public static class Extensions { - public static IEnumerable Select(this SQLiteDataReader reader, Func projection) + public static IEnumerable Select(this SqliteDataReader reader, Func projection) { while (reader.Read()) { diff --git a/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Flow.Launcher.Plugin.BrowserBookmark.csproj b/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Flow.Launcher.Plugin.BrowserBookmark.csproj index 6cd155ecc..fc26ee77a 100644 --- a/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Flow.Launcher.Plugin.BrowserBookmark.csproj +++ b/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Flow.Launcher.Plugin.BrowserBookmark.csproj @@ -1,4 +1,4 @@ - + Library @@ -55,15 +55,15 @@ - - - - - + + + + + \ No newline at end of file