Goql
Super simple SQL query builder
Install / Use
/learn @rgamba/GoqlREADME
goql
goql is a super fast and easy to use query builder and database table to struct modeling convention. It is like an ORM but it just gets out of your way and let's you keep control of your queries.
For the following examples, let's assume you have the following table user:
id | username | password -- | -- | -- 1 | ricardo | secret123 2 | admin | ultrasecret
Mapping a table to a struct
type User struct {
ID int64 `db:"id" pk:"true"`
Username string `db:"username"`
Password string `db:"password"`
}
Select queries
query := goql.QueryBuilder{}
query.Select("id, username, password").From("user").Where("id = $?", 1).QueryAndScan(db, &user)
fmt.Println(user.username) // -> "ricardo"
Or even better...
myuser := User{}
query := goql.QueryBuilder{}
query.Select(myser).Where("id = $?", 1).QueryAndScan(db, &user)
fmt.Println(user.username) // -> "ricardo"
Insert or update
newUser := User{ID: 3, Name: "John", Password: "123"}
Insert(db, "user", newUser)
newUser.Name = "Bob"
Update(db, "user", newUser)
Note db in both cases must be either of type *sql.DB or *sql.Tx
Related Skills
oracle
345.9kBest practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
xurl
345.9kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
prose
345.9kOpenProse VM skill pack. Activate on any `prose` command, .prose files, or OpenProse mentions; orchestrates multi-agent workflows.
Command Development
106.4kThis skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
