FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
How does a linter know your column doesn't exist
How-ToSystems

How does a linter know your column doesn't exist

via Dev.toEitamos Ring3w ago

You write a query that SELECTs ghost_status from the orders table. Your code compiles. Your tests pass. But ghost_status was never created in any migration. In production, that query crashes. Valk Guard catches this at PR time - with no database connection. This post walks through exactly how. Not hand-waving. The actual code path, from source file to finding. The setup Here's a Go file using Goqu to build a query: func ListBrokenUserOrderStatus(ctx context.Context) error { _, _, err := goqu.From("users"). LeftJoin( goqu.T("orders"), goqu.On(goqu.I("orders.user_id").Eq(goqu.I("users.id"))), ). Select("users.id", "users.email", "orders.ghost_status"). Where(goqu.I("orders.missing_flag").Eq("pending")). ToSQL() return err } And here's the migration that created the orders table: CREATE TABLE orders ( id SERIAL PRIMARY KEY, user_id INTEGER NOT NULL REFERENCES users(id), total NUMERIC(10,2) NOT NULL, status TEXT NOT NULL DEFAULT 'pending', created_at TIMESTAMP DEFAULT now() ); Notice: the

Continue reading on Dev.to

Opens in a new tab

Read Full Article
15 views

Related Articles

What You Need to Know About Building an Outdoor Sauna (2026)
How-To

What You Need to Know About Building an Outdoor Sauna (2026)

Wired • 2h ago

The Boring Skills That Make Developers Unstoppable in 2026
How-To

The Boring Skills That Make Developers Unstoppable in 2026

Medium Programming • 6h ago

I Installed This VS Code Extension… and My Code Got Instantly Better
How-To

I Installed This VS Code Extension… and My Code Got Instantly Better

Medium Programming • 8h ago

The Age of Personalized Software
How-To

The Age of Personalized Software

Medium Programming • 10h ago

Automating Checkout Add-On Recommendations in WordPress for WooCommerce
How-To

Automating Checkout Add-On Recommendations in WordPress for WooCommerce

Dev.to • 10h ago

Discover More Articles