This file contains hidden or 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
import * as React from 'react'; | |
function proxyEntity(entity) { | |
let originalValues = {}; | |
return new Proxy(entity, { | |
set: function (obj, prop, val) { |
This file contains hidden or 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
module DapperFSharp = | |
open System.Data.SqlClient | |
open System.Dynamic | |
open System.Collections.Generic | |
open Dapper | |
let dapperQuery<'Result> (query:string) (connection:SqlConnection) = | |
connection.Query<'Result>(query) | |
let dapperParametrizedQuery<'Result> (query:string) (param:obj) (connection:SqlConnection) : 'Result seq = |
This file contains hidden or 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
set PGPASSWORD="<password>"; | |
pg_dump -d "<database name>" -h "localhost" -p "5432" -U "postgres" --clean --create --schema-only --file "db_schema_copy" --format custom; | |
dropdb --if-exists -U postgres "<test database name>"; | |
createdb -U "postgres" "<test database name>"; | |
pg_restore.exe -U postgres -d "<test database name>" .\db_schema_copy; |