potygen
Npgsql.FSharp.Analyzer
potygen | Npgsql.FSharp.Analyzer | |
---|---|---|
2 | 3 | |
- | 137 | |
- | - | |
- | 0.0 | |
- | over 2 years ago | |
C# | ||
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
potygen
- Kysely: TypeScript SQL Query Builder
-
Objection to ORM Hatred
I really hope the community converges on just one common solution to this as I see soo many different approaches to the same “there’s no great modular ORM for typescript” problem.
I myself went the route of “lets just have raw sql queries” but extract distinct and specific types from them automatically- https://github.com/potygen/potygen
Great thing is that it handles sql of any complexity - CTEs, views, nested selects/joins/unions/custom functions you name it. All tools you can use to encapsulate logic in sql itself (what ORM were supposed to be for) and then have it be statically validated at compile time thus saving you the need for righting all those trivial unit tests that was also one of the key benefits of ORMs.
Admittedly if there was something like LINQ I would probably not have ventured into building potygen, but I’m glad I did as I learned so much about SQL as a language and what it had to offer - its silly how much logic I used to rely on writing in code that could easily be handled by sql in a much mode concise way.
Npgsql.FSharp.Analyzer
What are some alternatives?
kanel - Generate Typescript types from Postgres
Dapper.FSharp - Lightweight F# extension for StackOverflow Dapper with support for MSSQL, MySQL, PostgreSQL, and SQLite
SqlHydra - SqlHydra is a suite of NuGet packages for working with databases in F# including code generation tools and query expressions.
Mondocks - An alternative way to interact with MongoDB databases from F# that allows you to use mongo-idiomatic constructs
Npgsql.FSharp - Thin F# wrapper around Npgsql, the PostgreSQL database driver for .NET
DustyTables - Thin F# API for SqlClient for easy data access to ms sql server with functional seasoning on top
tsql - Transact-SQL template combinators.
sequelts
kysely-codegen - Generate Kysely type definitions from your database.
postgresql-typed - Haskell PostgreSQL library with compile-time type inference
assert-combinators - Functional assertion combinators.