ngx-php VS sqlc

Compare ngx-php vs sqlc and see what are their differences.

ngx-php

ngx-php - Embedded php7 or php8 scripting language for nginx module. Mainline development version of the ngx-php. (by rryqszq4)
Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
ngx-php sqlc
7 185
687 15,842
0.1% 1.5%
7.3 8.9
11 days ago 3 days ago
C Go
BSD 2-clause "Simplified" License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

ngx-php

Posts with mentions or reviews of ngx-php. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-08-30.

sqlc

Posts with mentions or reviews of sqlc. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-08-26.
  • Nil Pointer Panic at 3 AM: Choosing the Right Go Database Tool to Save Your Sleep
    2 projects | dev.to | 26 Aug 2025
    SQLC is a modern marvel. It's not an ORM or a library; it's a code generator. You write raw SQL queries in .sql files, and sqlc generates fully type-safe, idiomatic Go code that you can call in your application.
  • I benchmarked nine Go SQLite drivers and here are the results
    6 projects | news.ycombinator.com | 18 Aug 2025
    I've been using the modernc driver for a few years in https://github.com/bbkane/enventory . It's worked perfectly with no drama. Combined with https://sqlc.dev/, I've been very happy writing (small) database applications in Go.
  • SQLx – The Rust SQL Toolkit
    16 projects | news.ycombinator.com | 25 Jul 2025
    Speaking of Go, if you want compile-time type checking like what SQLx offers, the Go ecosystem has an option that is arguably even better at it:

    https://sqlc.dev/

    It has the advantage that it implements the parsing and type checking logic in pure Go, allowing it to import your migrations and infer the schema for type checking. With SQLx you need to have your database engine running at compile time during the proc macro execution with the schema already available. This makes SQLx kind of a non-starter for me, though I understand why nobody wants to do what sqlc does (it involves a lot of duplication that essentially reimplements database features.)

  • Sqlc: Generate type-safe code from SQL
    1 project | news.ycombinator.com | 16 Apr 2025
  • sqlc: Type-Safe Querying in Go
    1 project | dev.to | 16 Mar 2025
  • Goravel: A Go framework inspired by Laravel
    9 projects | news.ycombinator.com | 9 Mar 2025
    What would you use if ORM is to be avoided?

    Perhaps something like https://github.com/sqlc-dev/sqlc ?

  • User authentication in go
    10 projects | dev.to | 30 Jan 2025
    Next, let's write sql queries for retrieving our users & their permissions. Here we will use sqlc for type-safe code generation from our sql queries, and pgx as its backend
  • Rails for Everything
    18 projects | news.ycombinator.com | 1 Jan 2025
  • Show HN: Generate type-safe code for SQL queries in any language
    2 projects | news.ycombinator.com | 27 Nov 2024
    sqlc (https://sqlc.dev/) is amazing, but I needed to use it in several unsupported languages. So instead of creating a plugin for each of those languages, I created a generic one, which is based on go templates.
  • Some Go web dev notes
    16 projects | news.ycombinator.com | 29 Sep 2024
    I really wanted to like sqlc, but it had some major limitations and minor annoyances last time I tried it a few months ago. You might want to go through its list of issues[1] before adopting it.

    Things like no support for dynamic queries[2], one-to-many relationships[3], embedded CTEs[4], composite types[5], etc.

    It might work fine if you only have simple needs, but if you ever want to do something slightly sophisticated, you'll have to fallback to the manual approach. It's partly understandable, though. It cannot realistically support every feature of every DBMS, and it's explicitly not an ORM. But I still decided to stick to the manual approach for everything, instead of wondering whether something is or isn't supported by sqlc.

    [1]: https://github.com/sqlc-dev/sqlc/issues/

    [2]: https://github.com/sqlc-dev/sqlc/issues/3414

    [3]: https://github.com/sqlc-dev/sqlc/issues/3394

    [4]: https://github.com/sqlc-dev/sqlc/issues/3128

    [5]: https://github.com/sqlc-dev/sqlc/issues/2760

What are some alternatives?

When comparing ngx-php and sqlc you can also consider the following projects:

swow - Coroutine-based cross-platform concurrent I/O engine.

jet - Type safe SQL builder with code generation and automatic query result data mapping

ngx_http_proxy_connect_module - A forward proxy module for CONNECT request handling

sqlx - general purpose extensions to golang's database/sql

hyperf - 🚀 A coroutine framework that focuses on hyperspeed and flexibility. Building microservice or middleware with ease.

xo - Command line tool to generate idiomatic Go code for SQL databases supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server

Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured

Did you know that C is
the 6th most popular programming language
based on number of references?