-
个人对go-zero的sqlc部分进行了实践,加入了两个redis,在两个redis之间都放了相同的数据,这个数据是通过sqlc的查询操作放入redis的,之后进行sqlc的删除操作,但只有一个redis的该数据被删除,另一个的还在(但访问的时候又不去访问那个redis的数据,把第一个redis的配置注释掉,只剩这个有数据的redis时才会去访问它),在调试的时候发现在删除缓存的部分是只删除一个节…
-
When the policy service was developed, we made the choice to have the upsert FQN function to act as a side-effect so that we could continue moving quickly. This was not a concern since the fqn reindex…
-
### Version
1.27.0
### What happened?
#### Generated `models.go`
```go
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.27.0
package repository
import (
"github.c…
-
### Version
1.22.0
### What happened?
I have a column which has [tsvector](https://www.postgresql.org/docs/current/datatype-textsearch.html#DATATYPE-TSVECTOR) data type.
I need to insert more than…
-
### Version
1.25.0
### What happened?
For the query:
```
-- name: List :many
SELECT *
FROM table
WHERE (id IN (sqlc.slice('ids')) OR sqlc.slice('ids') == NULL)
ORDER BY id;
````
call `q…
-
### Version
1.27.0
### What happened?
`query.sql:57:96: edited query syntax is invalid: syntax error at or near "ext"`
If I replace the `@now` with `sqlc.arg(now)` though it works. I also get er…
-
drush sqlc command takes me to the sql command prompt rather than importing the sql file.
In our setup, I am logged in via SSH to run drush sqlc there. We have several DBs linked up with galera cl…
wah22 updated
6 months ago
-
# Criando uma API usando Go e sqlc
Ao escrever uma aplicação Go que trata dados em um banco de dados (neste post vou me concentrar em bancos de dados relacionais) temos algumas opções:
[https://elto…
-
### Version
1.27.0
### What happened?
Hello, I was just pulling out my non-existent hairs about why the filtering of my blog articles produced article lists that made no sense.
I have this q…
-
This my storage.go file
```go
package db
import (
"context"
"fmt"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
)
//Store provides all functions to execute db querie…