-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1964abf
commit e0f32ac
Showing
5 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule FSharp.TypeProviders.SDK
updated
18 files
+5 −3 | .travis.yml | |
+35 −7 | README.md | |
+15 −5 | build.fsx | |
+1 −1 | examples/BasicProvider.DesignTime/BasicProvider.DesignTime.fsproj | |
+2 −1 | examples/BasicProvider/BasicProvider.fsproj | |
+10 −0 | examples/StressProvider.Tests/File1.fs | |
+3 −1 | examples/StressProvider.Tests/StressProvider.Tests.fs | |
+19 −1 | examples/StressProvider/StressProvider.fs | |
+44 −0 | examples/StressProvider/StressProvider.nuspec | |
+12 −0 | fsc.props | |
+11 −4 | paket.dependencies | |
+869 −1 | paket.lock | |
+1 −0 | src/FSharp.TypeProviders.SDK.fsproj | |
+73 −24 | src/ProvidedTypes.fs | |
+3 −3 | src/ProvidedTypes.fsi | |
+6 −1 | src/ProvidedTypesTesting.fs | |
+14 −2 | tests/BasicErasedProvisionTests.fs | |
+68 −22 | tests/BasicGenerativeProvisionTests.fs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Learn more about F# at http://fsharp.org | ||
|
||
open FSharp.Data.Npgsql | ||
|
||
[<Literal>] | ||
let connection = "Host=localhost;Username=postgres;Password=postgres" | ||
|
||
[<EntryPoint>] | ||
let main _ = | ||
use cmd = new NpgsqlCommand<"SELECT now() as now, @echo::int as value", connection>(connection) | ||
let x = cmd.Execute(42) |> Seq.exactlyOne | ||
printfn "Today: %A, echo value: %A" x.now x.value | ||
0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>netcoreapp2.1</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="Program.fs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Npgsql" Version="4.0.3" /> | ||
<PackageReference Include="Npgsql.LegacyPostgis" Version="1.0.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\src\Runtime\Runtime.fsproj" /> | ||
</ItemGroup> | ||
|
||
<!--<ItemGroup> | ||
<Reference Include="FSharp.Data.Npgsql"> | ||
<HintPath>..\..\src\Runtime\bin\Debug\netstandard2.0\FSharp.Data.Npgsql.dll</HintPath> | ||
</Reference> | ||
</ItemGroup>--> | ||
|
||
</Project> |