An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/hexdigest/prep

Package prep instruments instruments db connection with prepared statements. It allows you to benefit from the prepared SQL statements almost without any changes to your code. Prep consists of two parts: 1. A command line tool that finds all SQL statements in your code 2. A package that instruments your code with prepared SQL statements using the found ones Firstly you should generate a list of SQL statements used in your application Let's generate a list of the SQL statements used in your package: Using prepared statements: Take a look at the line: It instruments your connection with prepared statements found by the generator. The generated code already contains //go:generate instruction, so in order to update the statements list you can simply run: Some synthetic benchmarks:

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/hexdigest/prep
License: Apache-2.0
Latest release: over 7 years ago
First release: over 7 years ago
Namespace: github.com/hexdigest
Stars: 33 on GitHub
Forks: 6 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 2 months ago

    Loading...
    Readme
    Loading...