Skip to content

Commit 61210d3

Browse files
committed
fix godoc
1 parent 5d10070 commit 61210d3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

samples/tutorials/go/columnstore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var (
1717
database = "SampleDB"
1818
)
1919

20-
// Delete an employee from database
20+
// ExecuteAggregateStatement output summary of prices
2121
func ExecuteAggregateStatement(db *sql.DB) {
2222
result, err := db.Prepare("SELECT SUM(Price) as sum FROM Table_with_5M_rows")
2323
if err != nil {

samples/tutorials/go/crud.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var (
1616
database = "SampleDB"
1717
)
1818

19-
// Create an employee
19+
// CreateEmployee create an employee
2020
func CreateEmployee(db *sql.DB, name string, location string) (int64, error) {
2121
tsql := fmt.Sprintf("INSERT INTO TestSchema.Employees (Name, Location) VALUES ('%s','%s');",
2222
name, location)
@@ -28,7 +28,7 @@ func CreateEmployee(db *sql.DB, name string, location string) (int64, error) {
2828
return result.LastInsertId()
2929
}
3030

31-
// Read all employees
31+
// ReadEmployees read all employees
3232
func ReadEmployees(db *sql.DB) (int, error) {
3333
tsql := fmt.Sprintf("SELECT Id, Name, Location FROM TestSchema.Employees;")
3434
rows, err := db.Query(tsql)
@@ -52,7 +52,7 @@ func ReadEmployees(db *sql.DB) (int, error) {
5252
return count, nil
5353
}
5454

55-
// Update an employee's information
55+
// UpdateEmployee update an employee's information
5656
func UpdateEmployee(db *sql.DB, name string, location string) (int64, error) {
5757
tsql := fmt.Sprintf("UPDATE TestSchema.Employees SET Location = '%s' WHERE Name= '%s'",
5858
location, name)
@@ -64,7 +64,7 @@ func UpdateEmployee(db *sql.DB, name string, location string) (int64, error) {
6464
return result.LastInsertId()
6565
}
6666

67-
// Delete an employee from database
67+
// DeleteEmployee delete an employee from database
6868
func DeleteEmployee(db *sql.DB, name string) (int64, error) {
6969
tsql := fmt.Sprintf("DELETE FROM TestSchema.Employees WHERE Name='%s';", name)
7070
result, err := db.Exec(tsql)

0 commit comments

Comments
 (0)