Git Product home page Git Product logo

websharper-sqlprovider's Introduction

WebSharper + SQLProvider Benchmark

This project is intended for use as one of the frameworks in the TechEmpower Frameworks Benchmark (http://www.techempower.com/benchmarks/). It uses WebSharper Warp with the FSharp.Data.SqlProvider type provider, with PostgreSQL as the back-end database.

The runtime database connection string is set by setting the BENCHMARK_DB_CONNECT_STRING environment variable in the environment of the process launching the server.

Note on working with the type provider:

Note that for the IDE to find the file--both for IntelliSense autocompletion and for compilation--the ResolutionPath parameter has to be set to point to the directory containing the libraries for Postgres (Npgsql.dll and Mono.Security.dll). This project assumes these libraries are under the NuGet packages directory hierarchy.

Note also that for working with the type provider, the project references must include System and System.Data.

If you're still having problems, note the following (from the project GitHub page):

Database vendors other than MS SQL Server use dynamic assembly loading. This may cause 
some security problems depending on your system's configuration and which version of the 
.NET framework you are using. If you encounter problems loading dynamic assemblies, they 
can likely be resolved by applying the following element (`<loadFromRemoteSources>`) into 
the configuration files of  fsi.exe, devenv.exe and your program or the program using your 
library : http://msdn.microsoft.com/en-us/library/dd409252(VS.100).aspx

This doesn't seem to be an issue developing in Mono with .NET 4.5.

Here are some other things you might try:

  1. In Xamarin Studio, setting the location of the dlls in Preferences -> Build -> Assembly Folders (Custom folders where Xamarin should look for assemblies and packages)

  2. Using the gacutil to put the assemblies into the GAC

websharper-sqlprovider's People

Watchers

Paul Blair avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.