1 instantiation of SQLitePersistentStorage
Microsoft.CodeAnalysis.Workspaces (1)
Storage\SQLite\v2\SQLitePersistentStorage.cs (1)
131var storage = new SQLitePersistentStorage(
22 references to SQLitePersistentStorage
Microsoft.CodeAnalysis.Workspaces (16)
Storage\SQLite\v2\AbstractPersistentStorageService+SQLiteTestAccessor.cs (1)
18(service._currentPersistentStorage as SQLitePersistentStorage)?.DatabaseOwnership.Dispose();
Storage\SQLite\v2\Interop\SqlConnection.cs (5)
25/// cref="SQLitePersistentStorage.GetPooledConnection(out SqlConnection)"/>). Connections can be used by different 247Logger.Log(FunctionId.SQLite_SqlException, SQLitePersistentStorage.GetLogMessage(ex)); 327if (length <= SQLitePersistentStorage.MaxPooledByteArrayLength) 342var bytes = SQLitePersistentStorage.GetPooledBytes(); 354SQLitePersistentStorage.ReturnPooledBytes(bytes);
Storage\SQLite\v2\SQLitePersistentStorage.Accessor.cs (2)
30protected readonly SQLitePersistentStorage Storage; 52SQLitePersistentStorage storage,
Storage\SQLite\v2\SQLitePersistentStorage.cs (2)
120public static SQLitePersistentStorage? TryCreate( 131var storage = new SQLitePersistentStorage(
Storage\SQLite\v2\SQLitePersistentStorage_DocumentSerialization.cs (1)
32private sealed class DocumentAccessor(SQLitePersistentStorage storage) : Accessor<DocumentKey, DocumentPrimaryKey>(Table.Document,
Storage\SQLite\v2\SQLitePersistentStorage_ProjectSerialization.cs (1)
32private sealed class ProjectAccessor(SQLitePersistentStorage storage) : Accessor<ProjectKey, ProjectPrimaryKey>(Table.Project,
Storage\SQLite\v2\SQLitePersistentStorage_SolutionSerialization.cs (1)
33private sealed class SolutionAccessor(SQLitePersistentStorage storage) : Accessor<SolutionKey, SolutionPrimaryKey>(Table.Solution,
Storage\SQLite\v2\SQLitePersistentStorage+PooledConnection.cs (2)
14private readonly struct PooledConnection(SQLitePersistentStorage storage, SqlConnection sqlConnection) : IDisposable 44throw new InvalidOperationException($"Cannot get a connection to the DB unless running on one of {nameof(SQLitePersistentStorage)}'s schedulers");
Storage\SQLite\v2\SQLitePersistentStorageService.cs (1)
79return new(SQLitePersistentStorage.TryCreate(
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (6)
PersistentStorage\AbstractPersistentStorageTests.cs (6)
50private const int LargeSize = (int)(SQLite.v2.SQLitePersistentStorage.MaxPooledByteArrayLength * 2); 51private const int MediumSize = (int)(SQLite.v2.SQLitePersistentStorage.MaxPooledByteArrayLength / 2); 72Assert.True(MediumData1.Length < SQLite.v2.SQLitePersistentStorage.MaxPooledByteArrayLength); 73Assert.True(MediumData2.Length < SQLite.v2.SQLitePersistentStorage.MaxPooledByteArrayLength); 75Assert.True(LargeData1.Length > SQLite.v2.SQLitePersistentStorage.MaxPooledByteArrayLength); 76Assert.True(LargeData2.Length > SQLite.v2.SQLitePersistentStorage.MaxPooledByteArrayLength);