1 instantiation of SQLitePersistentStorage
Microsoft.CodeAnalysis.Workspaces (1)
Storage\SQLite\v2\SQLitePersistentStorage.cs (1)
93
var sqlStorage = new
SQLitePersistentStorage
(
20 references to SQLitePersistentStorage
Microsoft.CodeAnalysis.Workspaces (14)
Storage\SQLite\v2\Interop\SqlConnection.cs (6)
24
/// Connections are considered relatively heavyweight and are pooled until the <see cref="
SQLitePersistentStorage
"/>
25
/// is <see cref="
SQLitePersistentStorage
.Dispose"/>d. Connections can be used by different threads,
247
Logger.Log(FunctionId.SQLite_SqlException,
SQLitePersistentStorage
.GetLogMessage(ex));
327
if (length <=
SQLitePersistentStorage
.MaxPooledByteArrayLength)
342
var bytes =
SQLitePersistentStorage
.GetPooledBytes();
354
SQLitePersistentStorage
.ReturnPooledBytes(bytes);
Storage\SQLite\v2\SQLitePersistentStorage.Accessor.cs (2)
30
protected readonly
SQLitePersistentStorage
Storage;
52
SQLitePersistentStorage
storage,
Storage\SQLite\v2\SQLitePersistentStorage.cs (2)
85
public static
SQLitePersistentStorage
? TryCreate(
93
var
sqlStorage = new SQLitePersistentStorage(
Storage\SQLite\v2\SQLitePersistentStorage_DocumentSerialization.cs (1)
35
public DocumentAccessor(
SQLitePersistentStorage
storage)
Storage\SQLite\v2\SQLitePersistentStorage_ProjectSerialization.cs (1)
35
public ProjectAccessor(
SQLitePersistentStorage
storage)
Storage\SQLite\v2\SQLitePersistentStorage_SolutionSerialization.cs (1)
36
public SolutionAccessor(
SQLitePersistentStorage
storage)
Storage\SQLite\v2\SQLitePersistentStorageService.cs (1)
110
return new(
SQLitePersistentStorage
.TryCreate(
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (6)
PersistentStorage\AbstractPersistentStorageTests.cs (6)
50
private const int LargeSize = (int)(SQLite.v2.
SQLitePersistentStorage
.MaxPooledByteArrayLength * 2);
51
private const int MediumSize = (int)(SQLite.v2.
SQLitePersistentStorage
.MaxPooledByteArrayLength / 2);
72
Assert.True(MediumData1.Length < SQLite.v2.
SQLitePersistentStorage
.MaxPooledByteArrayLength);
73
Assert.True(MediumData2.Length < SQLite.v2.
SQLitePersistentStorage
.MaxPooledByteArrayLength);
75
Assert.True(LargeData1.Length > SQLite.v2.
SQLitePersistentStorage
.MaxPooledByteArrayLength);
76
Assert.True(LargeData2.Length > SQLite.v2.
SQLitePersistentStorage
.MaxPooledByteArrayLength);