//go:build no_duckdb

package db

import (
	"database/sql"
	"errors"
)

// DuckDBSchema is exported for parity with the real build; not used when the
// stub is selected.
const DuckDBSchema = ""

// OpenDuckDB returns an error when the binary is built with -tags no_duckdb.
// This build mode exists only to support environments without a CGO toolchain
// (Phase 0 development on Windows without mingw, for example). Production
// builds must NOT use this tag; the deliverables checklist requires a working
// DuckDB.
func OpenDuckDB(path string) (*sql.DB, error) {
	return nil, errors.New("duckdb: compiled with -tags no_duckdb; rebuild without it for production")
}

// DuckDBAvailable reports whether DuckDB is compiled into this binary.
func DuckDBAvailable() bool { return false }
