File tree Expand file tree Collapse file tree
SQLFiddle.Website/Views/Home Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 <select id =" backend" >
66 <option value =" SQLiteFiddle" selected >SQLite</option >
77 <option value =" TSQLFiddle" >T-SQL</option >
8+ <option value =" PostgresFiddle" >Postgres</option >
89 </select >
910 <span style =" float : right " >
10- <a href =" #A1272D216C3DD2987FE37389215CF7F3113BECB8 " style =" margin-right : 50px " >(example)</a >
11+ <a href =" #52632EC5A298CFFFD652D53C03DD1318A9DACA3C " style =" margin-right : 50px " >(example)</a >
1112 SQL typechecking and translation
1213 <a href =" https://github.com/rspeele/Rezoom.SQL" >powered by RZSQL</a >.
1314 Web interface built with the
Original file line number Diff line number Diff line change @@ -7,11 +7,13 @@ let saveFiddle fiddleData = Persistence.saveFiddle fiddleData
77
88let private sqliteBackend = SQLite.SQLiteBackend() :> IBackend
99let private tsqlBackend = TSQL.TSQLBackend() :> IBackend
10+ let private postgresBackend = Postgres.PostgresBackend() :> IBackend
1011
1112let private backendOf fiddleBackend =
1213 match fiddleBackend with
1314 | SQLiteFiddle -> sqliteBackend
1415 | TSQLFiddle -> tsqlBackend
16+ | PostgresFiddle -> postgresBackend
1517
1618let private errorFrom ty ( exn : SQLCompilerException ) =
1719 let src , reason , message =
Original file line number Diff line number Diff line change @@ -7,14 +7,17 @@ type FiddleModel = SQLModel<".">
77type FiddleBackend =
88 | SQLiteFiddle
99 | TSQLFiddle
10+ | PostgresFiddle
1011 override this.ToString () =
1112 match this with
1213 | SQLiteFiddle -> " sqlite"
1314 | TSQLFiddle -> " tsql"
15+ | PostgresFiddle -> " postgres"
1416 static member Parse ( str : string ) =
1517 match str with
1618 | " sqlite" -> Some SQLiteFiddle
1719 | " tsql" -> Some TSQLFiddle
20+ | " postgres" -> Some PostgresFiddle
1821 | _ -> None
1922
2023type FiddleId =
You can’t perform that action at this time.
0 commit comments