|
1 | 1 | using Flow.Launcher.Plugin.BrowserBookmark.Models;
|
| 2 | +using Microsoft.Data.Sqlite; |
2 | 3 | using System;
|
3 | 4 | using System.Collections.Generic;
|
4 |
| -using System.Data.SQLite; |
5 | 5 | using System.IO;
|
6 | 6 | using System.Linq;
|
7 | 7 |
|
@@ -33,11 +33,11 @@ protected static List<Bookmark> GetBookmarksFromPath(string placesPath)
|
33 | 33 |
|
34 | 34 | // create the connection string and init the connection
|
35 | 35 | string dbPath = string.Format(dbPathFormat, placesPath);
|
36 |
| - using var dbConnection = new SQLiteConnection(dbPath); |
| 36 | + using var dbConnection = new SqliteConnection(dbPath); |
37 | 37 | // Open connection to the database file and execute the query
|
38 | 38 | dbConnection.Open();
|
39 |
| - var reader = new SQLiteCommand(queryAllBookmarks, dbConnection).ExecuteReader(); |
40 |
| - |
| 39 | + var reader = new SqliteCommand(queryAllBookmarks, dbConnection).ExecuteReader(); |
| 40 | + |
41 | 41 | // return results in List<Bookmark> format
|
42 | 42 | bookmarkList = reader.Select(
|
43 | 43 | x => new Bookmark(x["title"] is DBNull ? string.Empty : x["title"].ToString(),
|
@@ -133,7 +133,7 @@ Current profiles.ini structure example as of Firefox version 69.0.1
|
133 | 133 |
|
134 | 134 | public static class Extensions
|
135 | 135 | {
|
136 |
| - public static IEnumerable<T> Select<T>(this SQLiteDataReader reader, Func<SQLiteDataReader, T> projection) |
| 136 | + public static IEnumerable<T> Select<T>(this SqliteDataReader reader, Func<SqliteDataReader, T> projection) |
137 | 137 | {
|
138 | 138 | while (reader.Read())
|
139 | 139 | {
|
|
0 commit comments