GraphQL API and utilities for the rpdata project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
228 B

  1. -- name: SelectUser :one
  2. SELECT * FROM "user" WHERE id=$1 LIMIT 1;
  3. -- name: SelectUsers :many
  4. SELECT * FROM "user";
  5. -- name: InsertUser :exec
  6. INSERT INTO "user" (id, nick, permissions)
  7. VALUES (
  8. @id, @nick, @permissions
  9. );