Skip to content

Commit b47b62a

Browse files
committed
sqlite: scaffold BioFSharp.INSDC.SQLite project
Adds the netstandard2.0 F# library project, embeds the schema as a resource, references BioFSharp.FileFormats.INSDC and BioFSharp.IO.INSDC, and pins Microsoft.Data.Sqlite 8.0.10 (last line that still targets netstandard2.0). Registers the project in the solution.
1 parent ad36ace commit b47b62a

3 files changed

Lines changed: 52 additions & 9 deletions

File tree

‎BioFSharp.INSDC.slnx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<Folder Name="/src/">
33
<Project Path="src/BioFSharp.FileFormats.INSDC/BioFSharp.FileFormats.INSDC.csproj" />
44
<Project Path="src/BioFSharp.IO.INSDC/BioFSharp.IO.INSDC.fsproj" />
5+
<Project Path="src/BioFSharp.INSDC.SQLite/BioFSharp.INSDC.SQLite.fsproj" />
56
</Folder>
67
<Folder Name="/tests/">
78
<Project Path="tests/BioFSharp.INSDC.Tests/BioFSharp.INSDC.Tests.fsproj" />

‎plans/sqlite-store.md‎

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -320,15 +320,17 @@ O(entity_count) queries per reconstruction; with FK indexes this stays cheap.
320320

321321
**Result:** 42 tables (down from 80 in the dump), 11 indexes. Identifier fragmentation collapsed (5 entity tables × 5 ID kinds → 5 unified identifier tables; 15 reference-nested ID tables → 3 reference identifier tables). `accession_map` and `run_inner` dropped; sparse processing-directive tables inlined into `experiment`/`run`.
322322

323-
### Chunk 2 — SQLite project scaffold
324-
325-
- [ ] Create [src/BioFSharp.INSDC.SQLite/BioFSharp.INSDC.SQLite.fsproj](src/BioFSharp.INSDC.SQLite/BioFSharp.INSDC.SQLite.fsproj) — `netstandard2.0`, matches existing `BioFSharp.IO.INSDC.fsproj` style
326-
- [ ] Add `PackageReference Include="Microsoft.Data.Sqlite"`
327-
- [ ] Add `ProjectReference` to `BioFSharp.FileFormats.INSDC.csproj` and `BioFSharp.IO.INSDC.fsproj`
328-
- [ ] Add `<EmbeddedResource Include="schema/insdc_schema.sql" />`
329-
- [ ] Add `<PackageProjectUrl>`, `<Description>`, `<PackageTags>` etc. matching repo conventions
330-
- [ ] Register the new project in `BioFSharp.INSDC.slnx`
331-
- [ ] `dotnet build src/BioFSharp.INSDC.SQLite` succeeds (empty project compiles)
323+
### Chunk 2 — SQLite project scaffold ✅
324+
325+
- [x] Create [src/BioFSharp.INSDC.SQLite/BioFSharp.INSDC.SQLite.fsproj](src/BioFSharp.INSDC.SQLite/BioFSharp.INSDC.SQLite.fsproj) — `netstandard2.0`, matches existing `BioFSharp.IO.INSDC.fsproj` style
326+
- [x] Add `PackageReference Include="Microsoft.Data.Sqlite"` (8.0.10 — last line that still targets netstandard2.0; 9.x dropped it)
327+
- [x] Add `ProjectReference` to `BioFSharp.FileFormats.INSDC.csproj` and `BioFSharp.IO.INSDC.fsproj`
328+
- [x] Add `<EmbeddedResource Include="schema/insdc_schema.sql" />`
329+
- [x] Add `<PackageProjectUrl>`, `<Description>`, `<PackageTags>` etc. matching repo conventions
330+
- [x] Register the new project in `BioFSharp.INSDC.slnx`
331+
- [x] `dotnet build src/BioFSharp.INSDC.SQLite` succeeds (empty project compiles)
332+
333+
**Result:** Empty F# library compiles; full solution build is clean. Pre-existing NU1903 warnings on FAKE build tooling are unchanged.
332334

333335
### Chunk 3 — Internal helpers
334336

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netstandard2.0</TargetFramework>
5+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
6+
<IncludeSymbols>true</IncludeSymbols>
7+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<EmbeddedResource Include="schema\insdc_schema.sql" />
12+
<None Include="..\..\docs\img\icon.png" Pack="true" PackagePath="" />
13+
<None Include="..\..\README.md" Pack="true" PackagePath="" />
14+
</ItemGroup>
15+
16+
<PropertyGroup>
17+
<Authors>Kevin Schneider, BioFSharp contributors</Authors>
18+
<Description>SQLite-backed store for INSDC (International Nucleotide Sequence Database Collaboration) records — deconstructs BioProject, Study, BioSample, Experiment, and Run values into a normalized schema and reconstructs them on read.</Description>
19+
<Summary>SQLite store for BioFSharp.INSDC entities.</Summary>
20+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
21+
<PackageProjectUrl>https://github.com/BioFSharp/BioFSharp.INSDC</PackageProjectUrl>
22+
<PackageIcon>icon.png</PackageIcon>
23+
<PackageReadmeFile>README.md</PackageReadmeFile>
24+
<PackageTags>bioinformatics F# fsharp INSDC ENA SRA SQLite BioProject Sample Study Experiment Run</PackageTags>
25+
<RepositoryUrl>https://github.com/BioFSharp/BioFSharp.INSDC</RepositoryUrl>
26+
<RepositoryType>git</RepositoryType>
27+
<FsDocsLicenseLink>https://github.com/BioFSharp/BioFSharp.INSDC/blob/main/LICENSE</FsDocsLicenseLink>
28+
<FsDocsReleaseNotesLink>https://github.com/BioFSharp/BioFSharp.INSDC/blob/main/RELEASE_NOTES.md</FsDocsReleaseNotesLink>
29+
</PropertyGroup>
30+
31+
<ItemGroup>
32+
<ProjectReference Include="..\BioFSharp.FileFormats.INSDC\BioFSharp.FileFormats.INSDC.csproj" />
33+
<ProjectReference Include="..\BioFSharp.IO.INSDC\BioFSharp.IO.INSDC.fsproj" />
34+
</ItemGroup>
35+
36+
<ItemGroup>
37+
<PackageReference Include="Microsoft.Data.Sqlite" Version="8.0.10" />
38+
</ItemGroup>
39+
40+
</Project>

0 commit comments

Comments
 (0)