5 Repos
Mechanisms for mapping named placeholders in queries to struct fields or map keys.
Distinct from Map Bindings: Existing candidates focus on UI reactive bindings or CLI arguments, not SQL parameter resolution.
Explore 5 awesome GitHub repositories matching data & databases · Named Parameter Bindings. Refine with filters or upvote what's useful.
sqlx is a set of extensions for the Go database/sql package that reduces boilerplate code by automating the mapping of database query results directly into structs and slices. It provides a wrapper around standard database types to eliminate manual row scanning and repetitive error handling. The project distinguishes itself through named parameter binding and query placeholder rebinding, which translate generic markers into driver-specific symbols. It also enables dynamic SQL execution by allowing the application to read and execute SQL statements directly from the filesystem. The library co
Resolves named placeholders by mapping keys from maps or struct fields to positional arguments required by the driver.
fmdb is an object-oriented SQLite database library and persistence layer for native macOS and iOS environments. It provides an Objective-C wrapper that encapsulates the low-level C API, allowing applications to manage local relational data storage and embedded database connections through a high-level interface. The library focuses on thread-safe database access by synchronizing operations across multiple threads using serialized queues to prevent data corruption and race conditions. It includes specialized capabilities for secure local storage, such as database encryption and the management
Uses placeholders to bind values into SQL statements, preventing injection and ensuring proper escaping.
go-sqlmock is a Go library that simulates SQL driver behavior for unit testing by intercepting database calls through the standard database/sql/driver interface, eliminating the need for a real database connection. It provides a comprehensive mocking framework that allows developers to define expectations for SQL operations, including queries, executions, prepared statements, and transaction lifecycles, with precise control over the results and errors returned. The library distinguishes itself through its flexible matching and verification capabilities. It supports regex-based or exact SQL
Accepts query arguments by name and removes per-query options from the argument list.
Bind a name to an expression, optionally with parameters, so the expression can be referenced and reused elsewhere in code.
Rusqlite is an embedded database interface and relational database driver that provides a client library for interacting with SQLite. It functions as an SQL query wrapper, enabling the management of local file-based or in-memory databases through a safe interface. The library allows for the extension of native database capabilities by implementing custom scalar functions, collations, and virtual tables. It also supports the embedding of the database engine directly into the application binary to remove external library dependencies. The project covers a broad range of capabilities including
Maps variables to placeholders using macros to simplify the preparation and execution of SQL queries.