https://github.com/stofte/ream-query
.NET Core backend for Ream
https://github.com/stofte/ream-query
Last synced: 5 months ago
JSON representation
.NET Core backend for Ream
- Host: GitHub
- URL: https://github.com/stofte/ream-query
- Owner: stofte
- License: mit
- Created: 2016-06-17T09:37:23.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-12-20T14:06:47.000Z (over 8 years ago)
- Last Synced: 2025-02-01T02:18:44.028Z (over 1 year ago)
- Language: PLpgSQL
- Size: 579 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# .NET Core backend for the [Ream editor](https://github.com/stofte/ream-editor) [](https://ci.appveyor.com/project/stofte/ream-query) [](https://travis-ci.org/stofte/ream-query)
A [Kestrel](https://github.com/aspnet/KestrelHttpServer) hosted HTTP server that performs C# query evaluation and returns output values via websockets.
Code can be standalone programs, or use [EntityFramework](https://github.com/aspnet/EntityFramework) to connect to one of
- SQLServer
- SQLite
- [PostgreSQL](https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/)
## Development
Latest [.NET Core 2.0](https://www.microsoft.com/net/download) is required to be installed
in path for the following commands.
```
dotnet restore
dontet run -p tools/ReamQuery.RefDumper
dotnet test test/ReamQuery.Core.Test
dotnet test test/ReamQuery.Server.Test
```
SQL scripts for supported DB providers can be found in `sql` and must be run prior to running the tests.
Connection strings must be .NET syntax and are passed by the following environment variables:
- `REAMQUERY_WORLDDB_SQLSERVER`
- `REAMQUERY_WORLDDB_NPGSQL`
- `REAMQUERY_TYPETEST_SQLSERVER`
Unset values will cause dependent tests to not run. SQLite tests depend on the included SQLite3 database `sql\world.sqlite`, so are always run.