go-postgresql-graphql-api:使用Go和PostgreSQL创建Graphql API

时间:2021-05-01 17:24:51
【文件属性】:
文件名称:go-postgresql-graphql-api:使用Go和PostgreSQL创建Graphql API
文件大小:381KB
文件格式:ZIP
更新时间:2021-05-01 17:24:51
Go 转到GraphQL API 使用Go和PostgreSQL创建Graphql API 安装软件包 Graphql go get github.com/graphql-go/graphql Graphql处理程序 go get github.com/graphql-go/graphql-go-handler PosgreSQL go get github.com/lib/pq 数据库和创建表 连接psql psql -U 建立资料库 CREATE DATABASE tutorials; 创建完TABLE之后 CREATE TABLE IF NOT EXISTS "post" ( id SERIAL PRIMARY KEY, userId INT, title TEXT, body TEXT ); 表格创建评论 CREATE TABLE IF NO
【文件预览】:
go-postgresql-graphql-api-master
----.gitignore(199B)
----main.go(1KB)
----README.md(12KB)
----sql_code(6KB)
----database()
--------adapter.go(637B)
----screenshots()
--------insomia1.png(411KB)
----.idea()
--------vcs.xml(180B)
----types()
--------post.go(1KB)
--------comment.go(1KB)

网友评论