MCPcopy Create free account
hub / github.com/bcspragu/logseq-sync / CreateGraph

Method CreateGraph

db/sqlite/sqlitedb/query.sql.go:171–176  ·  view source on GitHub ↗
(ctx context.Context, arg CreateGraphParams)

Source from the content-addressed store, hash-verified

169}
170
171func (q *Queries) CreateGraph(ctx context.Context, arg CreateGraphParams) (int64, error) {
172 row := q.db.QueryRowContext(ctx, createGraph, arg.ID, arg.Name)
173 var current_tx int64
174 err := row.Scan(&current_tx)
175 return current_tx, err
176}
177
178const deleteGraph = `-- name: DeleteGraph :exec
179DELETE FROM graphs

Callers

nothing calls this directly

Calls 1

QueryRowContextMethod · 0.80

Tested by

no test coverage detected