Yesql parses a SQL file, extracts the query statement, and automatically generates the corresponding Go structure, realizing the separation of query statement and code, which is convenient for writing database query logic. Install go get github.com/alimy/yesql Create sql file using — sql file yesql.sql — name: newest_tags@topic — get newest tag information SELECT t.id id, t.user_id user_id, t.tag tag, t.quote_num quote_num, u.id, u.nickname, u.username, u.status, u.avatar, u.is_admin FROM @tag t JOIN …

#Yesql

Leave a Comment

Your email address will not be published. Required fields are marked *