如何将postgres数据库转换为sqlite [英] How to convert a postgres database to sqlite

查看:177
本文介绍了如何将postgres数据库转换为sqlite的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在开发一个网站,当我们开发本地(我们从Windows),我们使用sqlite3,但在服务器(linux)我们使用postgres。我们想要能够将生产数据库导入我们的开发过程,所以我想知道是否有一种方法从postgres数据库转储转换为sqlite3可以理解的东西(只是喂它postgres的转储的SQL给了很多,许多错误)。或者会更容易只是在windows上安装postgres?感谢。

We're working on a website, and when we develop locally (one of us from Windows), we use sqlite3, but on the server (linux) we use postgres. We'd like to be able to import the production database into our development process, so I'm wondering if there is a way to convert from a postgres database dump to something sqlite3 can understand (just feeding it the postgres's dumped SQL gave many, many errors). Or would it be easier just to install postgres on windows? Thanks.

推荐答案

有一些转换器工具:

a href =http://sqlite.com/cvstrac/wiki?p=ConverterTools> http://sqlite.com/cvstrac/wiki?p=ConverterTools

http://sqlite.com/cvstrac/wiki?p=ConverterTools


在windows上安装postgres会更容易吗?

Would it be easier just to install postgres on windows?

可能很简单。

这篇关于如何将postgres数据库转换为sqlite的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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