搜索插件、代码仓与 APP 分类

插件详情v4.1.2

serverpod_embedded_postgres

在本地开发 Serverpod 时,作为子进程运行真实的 PostgreSQL 服务器,无需 Docker 或固定端口冲突。

Windows
近 30 天下载
6.9万
喜欢数
0
Pub 分数
150

安装插件

flutter pub add serverpod_embedded_postgres

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个 Flutter/Dart 包,可在本地开发期间作为子进程运行独立的 PostgreSQL 服务器,无需 Docker 或手动端口管理。它通过自动处理启动、关闭和连接设置,实现与 Serverpod 应用的无缝数据库集成。非常适合希望获得轻量级、自包含数据库环境且避免与其他服务冲突的开发者。嵌入式服务器专为开发工作流设计,确保在 Windows 平台上的一致性和简洁性。

适合场景

  • Serverpod 应用的本地开发
  • 在无外部依赖的情况下测试数据库交互
  • 在开发环境中避免使用 Docker
  • 简化团队入职的设置
  • 每个项目运行独立的数据库实例

主要特点

  • 作为子进程运行 PostgreSQL
  • 无需 Docker
  • 自动端口管理
  • 与 Serverpod 的无缝集成
  • 支持 Windows 平台

适合对象

  • Serverpod 开发人员
  • 使用 Dart 的前端/后端团队
  • 本地数据库测试
  • CI/CD 流水线,设置简单
  • 开发者避免容器化

使用建议

  • 不适用于生产环境
  • 需要原生 PostgreSQL 二进制文件
  • 仅限 Windows 平台
  • 可能比轻量级替代方案消耗更多内存
  • 数据库状态在会话之间未持久化

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Serverpod banner

Serverpod

Serverpod is a next-generation app and web server, built for the Flutter community. It allows you to write your server-side code in Dart, automatically generate your APIs, and hook up your database with minimal effort. Serverpod is open-source, and you can host your server anywhere.

Get Started - Join the Mailing List

Capabilities

Serverpod is a complete, competent backend for Flutter. For the glossy sales pitch, head to our main page at Serverpod.dev.

Every design decision in Serverpod aims to minimize the amount of code you need to write and make it as readable as possible. Apart from being just a server, Serverpod incorporates many common tasks that are otherwise cumbersome to implement or require external services.

Code generation

Serverpod automatically generates your model and client-side code by analyzing your server. Calling a remote endpoint is as easy as making a local method call.

World-class logging

Stop struggling. You no longer need to search through endless server logs. Pinpoint exceptions and slow database queries in an easy-to-use user interface with a single click.

Built-in caching

Cut down on your database costs. Don't save all your data permanently when you don't have to. Serverpod comes with a high-performance distributed cache built right in. Any serializable objects can be cached locally on your server or using Redis if you need to use the same cache across a cluster of servers.

Easy to use ORM

Save time. Talking with your database can be a hassle. With Serverpod's ORM, your queries use native Dart types and null-safety. There is a straight path from your statically checked code to the database.

Database migrations

Easily keep your database in sync as the requirements of your project evolve. Serverpod comes with a complete database migration system that helps you apply and version changes to the database.

File uploads

Upload files straight to Google Cloud Storage, S3, or store them in your database.

Authentication

Sign in through social logins or wing your own. Currently supported are Google, Apple, Firebase, and email.

Data streaming

Pass serialized objects through authenticated sockets. Push messages from your server for real-time communication. Sending messages across a cluster of servers is supported. Perfect for building games or chatting applications, or anything you can imagine.

Task scheduling

Serverpod's future calls replace complicated cron jobs. Call a method anytime in the future or after a specified delay. The calls persist even if the server is restarted.

Health checks

Monitor the database and external services that you are using. Write custom health checks and get notified when something goes wrong.

Easy deployment

Serverpod comes with Terraform scripts for Google Cloud Platform and AWS, making deploying your server very quick. We are still working on scripts for other platforms. Please get in touch with us if you want to contribute.

Built-in web server

Serverpod comes with a built-in web server. This makes it very easy to share data for applications that need both an app and traditional web pages. You can also use the webserver to create webhooks or generate custom REST APIs to communicate with 3rd party services. The web server is still experimental, and we are actively working on it.

License

All Serverpod packages are licensed under BSD-3, except for the main serverpod package, which uses the SSPL license. In short, this means that you can, without limitation, use any of the client packages in your app. You can also host your Serverpod server without limitation as long as you do not offer Severpod as a cloud service to 3rd parties (this is typically only relevant for cloud service providers).

所属分类

依赖

依赖清单 9 项

源码仓库

使用此插件的项目

暂无相关数据。

所在榜单