2021年10月28日

pgadmin4 err

err
(sqlite3.IntegrityError) UNIQUE constraint failed: database.id, database.server
[SQL: INSERT INTO "database" (id, schema_res, server) VALUES (?, ?, ?)]
[parameters: (16384, '', 19)]
(Background on this error at: http://sqlalche.me/e/13/gkpj)

pger.png
posted by a23 at 13:05| Comment(0) | PostgreSQL

2021年10月25日

PostGraphile

-------------------------------------------------------
node.js


sudo apt update

sudo apt install nodejs
-------------------------------------------------------



npm install -g postgraphile



-------------------------------------------------------
PostgreSQLとPostGraphileでサクッとGraphQLエンドポイントを作成する


-------------------------------------------------------
sudo gedit !/usr/bin/env bash

#!/usr/bin/env bash
pnpx postgraphile \
  --connection postgres:///postgres \
  --watch
-------------------------------------------------------




‣ GraphQL API:         http://localhost:5000/graphql
  ‣ GraphiQL GUI/IDE:    http://localhost:5000/graphiql
  ‣ Postgres connection: postgres://postgres:[SECRET]@localhost/mydb (watching)
  ‣ Postgres schema(s):  public
  ‣ Documentation:       https://graphile.org/postgraphile/introduction/
  ‣ Node.js version:     v10.19.0 on linux x64
  ‣ Join Robert Claypool in supporting PostGraphile development: https://graphile.org/sponsor/
  
  
  
  
  
posted by a23 at 08:39| Comment(0) | PostgreSQL

2021年10月24日

ubuntu20.04 pgAdmin4


ubuntu20.04にpostgreSQLとpgAdmin

Screenshot from 2021-10-24 10-28-29.png




sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'

sudo apt install pgadmin4

 sudo /usr/pgadmin4/bin/setup-web.sh
mail
pass
Screenshot from 2021-10-25 10-31-41.png

posted by a23 at 10:28| Comment(0) | PostgreSQL