Ecosyste.ms: Packages

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

Top 5.5% on proxy.golang.org
Top 3.7% forks on proxy.golang.org

proxy.golang.org : gopkg.in/ulule/loukoum.v2

Package loukoum provides a simple SQL Query Builder. At the moment, only PostgreSQL is supported. If you have to generate complex queries, which rely on various contexts, loukoum is the right tool for you. It helps you generate SQL queries from composable parts. However, keep in mind it's not an ORM or a Mapper so you have to use a SQL connector (like "database/sql" or "sqlx", for example) to execute queries. If you're afraid to slip a tiny SQL injection manipulating fmt (or a byte buffer...) when you append conditions, loukoum is here to protect you against yourself. For further informations, you can read this documentation: https://github.com/ulule/loukoum/blob/master/README.md Or you can discover loukoum with these examples. An "insert" can be generated like that: Also, if you need an upsert, you can define a "on conflict" clause: Updating a news is also simple: You can remove a specific user: Or select a list of users...

Registry - Source - Documentation - JSON
purl: pkg:golang/gopkg.in/ulule/loukoum.v2
Keywords: builder, go, golang, postgres, postgresql, query, query-builder, sql
License: MIT
Latest release: over 5 years ago
First release: about 6 years ago
Namespace: gopkg.in/ulule
Stars: 316 on GitHub
Forks: 11 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 6 days ago

    Loading...
    Readme
    Loading...