Carel_S Posted November 5, 2020 Share Posted November 5, 2020 Hello everybody, I'm in the process of preparing my database data for import into a MongoDB database. Since MongoDB stores records as documents, the retrieved data needs to be formatted before it appears on the screen of a user. MongoDB uses records in BSON (JSON) format. I have 2 questions regarding this: 1. How is this done in Processwire? 2. Does the layout I want records to have on the screen of the user, require me to do certain things or add stuff when I'm setting up my document (= record) structure for a certain collection? I'm not a developer and I do know how I want my data laid out on the screen of the users who are querying the database. Any tips/explanations are highly appreciated. Thanks in advance guys! Regards, Carel. Link to comment Share on other sites More sharing options...
kongondo Posted November 6, 2020 Share Posted November 6, 2020 10 hours ago, Carel_S said: How is this done in Processwire? I'm not sure I follow the question. Do you want to use ProcessWire with MongoDB? If yes, it won't work. ProcessWire only supports MySQL. Link to comment Share on other sites More sharing options...
elabx Posted November 6, 2020 Share Posted November 6, 2020 7 hours ago, kongondo said: I'm not sure I follow the question. Me neither. Or maybe you 're trying to pull data from MongoDB into a site powered with PW? Link to comment Share on other sites More sharing options...
rick Posted November 6, 2020 Share Posted November 6, 2020 I haven't worked with mongo in years. From what I remember it is not a SQL type database, rather a document (json) type database. As such there is no "driver" to connect the database to ProcessWire as with PDO (Unless things have changed in those years). That being said, you could write a json parser to import the documents from mongo to create pages in PW. You say that you are not a developer, so this task will be quite complex, depending on the document references. I would not recommend you take on such a project. Is it possible to hire a developer to accomplish your task? (Assuming you want to migrate from mongo to mysql). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now