Skip to main content

sqlcx_core/generator/go/common/
mod.rs

1//! Shared helpers for Go driver generators.
2//!
3//! database/sql and pgx emit identical row structs, result structs, scan-fields,
4//! function signatures, and SQL constant helpers. Only the client (DBTX
5//! interface) and the query-function body differ (database/sql uses
6//! ExecContext/QueryRowContext; pgx uses pgconn.CommandTag and pgx.Rows).
7//! Those stay per-driver; this module owns the shared surface.
8
9pub mod codegen;
10pub mod naming;
11
12pub use codegen::{
13    escape_sql, func_params, generate_result_struct, generate_row_struct, query_args, scan_fields,
14};
15pub use naming::{lcfirst, sql_const_name};