https://github.com/inecas/fsharp-sqlite
An example project using F# and SQLite
https://github.com/inecas/fsharp-sqlite
fluentmigrator fsharp fsharp-samples sqlite sqlprovider
Last synced: 5 months ago
JSON representation
An example project using F# and SQLite
- Host: GitHub
- URL: https://github.com/inecas/fsharp-sqlite
- Owner: iNecas
- Created: 2019-06-02T20:49:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-05T21:09:49.000Z (over 6 years ago)
- Last Synced: 2025-08-23T09:43:42.795Z (5 months ago)
- Topics: fluentmigrator, fsharp, fsharp-samples, sqlite, sqlprovider
- Language: F#
- Size: 7.29 MB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FSharpSqlite
An example project using F# and SQLite, that involves:
- defining and running DB in F# using [fluentmigrator](https://github.com/fluentmigrator/fluentmigrator)
- setup of [SqlProvider](https://fsprojects.github.io/SQLProvider/) with SQLite (involving copying the files to
right place)
- using SqlProvider to work with the data
- running on top of dotnet core v3.0 using Linux containers
## Usage
The simplest way to get the reproducible setup is to use Linux containers. This instructions
prefer [Buildah](https://github.com/containers/buildah) and [Podman](https://podman.io/) over
`docker`, as they don't need any additional daemon to be running on the system. Corresponding
`docker` commands should still work though.
## Building app container
To build the sample application image, run:
```
buildah bud -t inecas/fsharp-sqlite .
```
This will download the [dotnet core v3 SDK image](https://hub.docker.com/_/microsoft-dotnet-core-sdk/)
and will prepare the setup for running the application.
## Usage
```
podman run --rm -ti --name inecas-fsharp-sqlite inecas/fsharp-sqlite
dotnet run -p src/FSharpSqlite.Use
# outputs: John's id is 1
```