Prisma构建数据库的 GraphQL 服务框架
Prisma 是一个快速构建 GraphQL 服务、REST API、数据库服务的后端框架
-
已支持 MySQL, PostgreSQL, MongoDB 等数据库,其他流行数据库正在开发中
-
客户端已支持 JavaScript, TypeScript, Flow, Go 等语言
-
类型安全的数据库访问,包括过滤器、聚合、分页和事务
-
数据库的实时事件系统以获得有关数据库事件的通知
-
具有简单SDL语法的声明性数据建模和迁移
示例代码:
const { prisma } = require('./generated/prisma-client')
// A `main` function so that we can use async/await
async function main() {
// Create a new user with a new post
const newUser = await prisma.createUser({
name: 'Alice',
posts: {
create: { title: 'The data layer for modern apps' }
}
})
console.log(`Created new user: ${newUser.name} (ID: ${newUser.id})`)
// Read all users from the database and print them to the console
const allUsers = await prisma.users()
console.log(allUsers)
// Read all posts from the database and print them to the console
const allPosts = await prisma.posts()
console.log(allPosts)
}
main().catch(e => console.error(e))
评论
Redeo构建 TCP 服务的高性能框架
Redeo是用于构建与redis协议兼容的TCP服务器/服务的高性能框架。这个仓库被组织成多个组成部分:root 包包含构建redis协议兼容的高性能服务器的框架resp 实现了用于处理RESP(RE
Redeo构建 TCP 服务的高性能框架
0
szm-boot微服务构建框架
szm-boot是一个快速构建基于SpringBoot的微服务的框架。它为微服务依赖组件构建集市,便于程序员、架构师快速搭建项目所需结构和通用处理框架,整体设计思路在于组件解耦、零配置。
szm-boot微服务构建框架
0
Python GraphenePython 的 GraphQL 框架
Graphene是Python的GraphQL框架,用于快速轻松构建GraphQLschemas/types。支持多种数据源,包括SQL(Django、SQLAlchemy)、NoSQL、自定义Pyt
Python GraphenePython 的 GraphQL 框架
0
Python GraphenePython 的 GraphQL 框架
Graphene 是 Python 的 GraphQL 框架,用于快速轻松构建 GraphQL sc
Python GraphenePython 的 GraphQL 框架
0
数据库处理框架数据库处理框架
是一个通用数据库处理框架(可以包含MSSQLPOSTGRESQL,SQLITEEXCELMYSQLDB2ORACLE...只要你愿意实现接口就可以).很便捷地进行常用数据库操作(增删改查).其性能是几
数据库处理框架数据库处理框架
0