github.com/Goboolean/common@v0.0.0-20231130153141-cb54596b217d/pkg/rdbms/queries.test.sql.go (about)

     1  // Code generated by sqlc. DO NOT EDIT.
     2  // versions:
     3  //   sqlc v1.19.1
     4  // source: queries.test.sql
     5  
     6  package rdbms
     7  
     8  import (
     9  	"context"
    10  )
    11  
    12  const countTestTableEntity = `-- name: CountTestTableEntity :one
    13  SELECT COUNT(*) FROM test_table
    14  `
    15  
    16  func (q *Queries) CountTestTableEntity(ctx context.Context) (int64, error) {
    17  	row := q.db.QueryRowContext(ctx, countTestTableEntity)
    18  	var count int64
    19  	err := row.Scan(&count)
    20  	return count, err
    21  }
    22  
    23  const insertTestTableEntity = `-- name: InsertTestTableEntity :exec
    24  INSERT INTO test_table (id) VALUES (DEFAULT)
    25  `
    26  
    27  func (q *Queries) InsertTestTableEntity(ctx context.Context) error {
    28  	_, err := q.db.ExecContext(ctx, insertTestTableEntity)
    29  	return err
    30  }