标签:poi 完成 maria database ice mariadb lock dep https
1 | npm i -g prisma |
1 | prisma init db //初始化prima |
Set up a new Prisma server or deploy to an existing server? (Use arrow keys)
Set up a new Prisma server for local development (based on docker-compose):
- ? Use existing database Connect to existing database // 连接本地数据库
- Create new database Set up a local database using Docker // 新建数据库
Or deploy to an existing Prisma server:
- Demo server + MySQL database Free development environment hosted in Prisma Cloud //云数据库
- Use other server Manually provide endpoint of a running Prisma server //云数据库
What kind of database do you want to deploy to? (Use arrow keys)
- ? MySQL MySQL compliant databases like MySQL or MariaDB
- PostgreSQL PostgreSQL database
- MongoDB Mongo Database
? Set up a new Prisma server or deploy to an existing server? Use existing database
? What kind of database do you want to deploy to? MongoDB
? Enter MongoDB connection string mongodb://localhost:27017
? Please select the schema you want to introspect yourdbname
*? Select the programming language for the generated Prisma client Don’t generate
? Enter MongoDB connection string
1 mongodb://localhost:27017
Created 3 new files:
prisma.yml Prisma service definition
datamodel.prisma GraphQL SDL-based datamodel (foundation for database)
docker-compose.yml Docker configuration file
删除 schema: xxxxx 这行
Next steps:
prisma deploy
Creating stage default for service default ?
Deploying service default
to stage default
to server local
1.4s
Changes:
User (Type)
User
id
of type ID!
name
of type String!
Applying changes 1.2s
Your Prisma endpoint is live:
HTTP: http://localhost:4466
WS: ws://localhost:4466
You can view & edit your data here:
Prisma Admin: http://localhost:4466/_admin
标签:poi 完成 maria database ice mariadb lock dep https
原文地址:https://www.cnblogs.com/petewell/p/11615157.html