如果可能的话如何嵌入PostgreSQL? [英] If possible how can one embed PostgreSQL?

查看:126
本文介绍了如果可能的话如何嵌入PostgreSQL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果可能,我有兴趣嵌入PostgreSQL数据库,类似于 sqllite 。我已阅读了不可能。我不是数据库专家,所以我想听听你的意见。

If it's possible, I'm interested in being able to embed a PostgreSQL database, similar to sqllite. I've read that it's not possible. I'm no database expert though, so I want to hear from you.

基本上我想要PostgreSQL没有所有的配置和安装。如果可能,告诉我如何。

Essentially I want PostgreSQL without all the configuration and installation. If it's possible, tell me how.

推荐答案

除非你做一个重大的代码重写,它是不可能运行Postgres嵌入。要么作为一个单独的进程运行它,要么使用别的东西。 SQLite是一个很好的选择。但还有其他人。 MySQL有一个嵌入式版本。请访问 http://mysql.com/oem/ 查看。还有几个java选择,和Mac有Core Data,你也可以写。地狱,你甚至可以使用FoxPro。您需要什么操作系统和数据库需要什么服务?

Unless you do a major rewrite of code, it is not possible to run Postgres "embedded". Either run it as a separate process or use something else. SQLite is an excellent choice. But there are others. MySQL has an embedded version. See it at http://mysql.com/oem/. Also several java choices, and Mac has Core Data you can write too. Hell, you can even use FoxPro. What OS you on and what services you need from the database?

这篇关于如果可能的话如何嵌入PostgreSQL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆