Usage
Do you want to write code quickly using sqlx?
Below is the snippets table:
prefix |
description |
sqlx: SELECT.one |
Retrieves one row from a table or view into a variable using the *sql.DB.QueryRowx() method. |
sqlx: SELECT.all |
Retrieves all rows from a table or view into a slice of structures using the *sql.DB.SelectContext method. |
sqlx: INSERT |
A code snippet for creating new table rows using *sqlx.DB.Exec() method. |
sqlx: DELETE |
A code snippet for deleting table rows using *sqlx.DB.Exec() method. |
sqlx: UPDATE |
A code snippet for updating table rows using *sqlx.DB.Exec() method. |
sqlx: SELECT.MAX |
A code snippet for getting the result of an aggregate function MAX() using the *sql.DB.QueryRowx() method. |
sqlx: SELECT.MIN |
A code snippet for getting the result of an aggregate function MIN() using the *sql.DB.QueryRowx() method. |
| |