Realm studio can't open new realm file generated from nodejs realm v6.1.1 - realm

I'm trying to convert my json data to a .realm file, i think i'm succeeding since i see the default.realm file increasing size but when i try to open it using realm studio i get this error:
I'm not sure what to do at this point. The realm/realm mongodb realm sync names are very confusing and links to docs go from one product to another which makes it a lot more confusing.

Realm is in the process of a change from Realm to MongoDB Realm
The first, I call 'classic' Realm. That's going be be Realm 5.x SDK and Realm Studio 3.11.
The Beta version of MongoDB Realm is what you're using (I think) and it's SDK is 10.x and that goes with Realm Studio 10.x. They work together and the SDK's are not compatible with the other Realm Studio versions.
So, if you are using the Beta, you'll need to download Realm Studio 10.x.
Be sure to back up important data files as opening them with a newer version will update them and you can't go backward.

Related

macOS Realm Browser requests encryption key to open after upgrading realm 1.13.0 to 2.0.0?

When I close app in iOS simulator and use Realm Browser to open database.realm it asks me to enter encryption key to open?
I had to roll-back to realm 1.13.0
Anyone else run into this? Any solutions?
Realm Browser: macOS Version 2.1.12 (96)
Target: react native on iOS
Realm JavaScript v2.0.0 has a newer file format, and so requires a newer version of Realm Browser, v3.0.0 or newer, in order to open the files. We're currently waiting for the new version of Realm Browser to make its way through the App Store update system. In the mean time, you can download the new version from our GitHub release page.

Build error when upgrading to SQLite for Universal Windows Platform v3.20.1

In my UWP solution I have a C++/CX project which uses a SQLite database. I used the extension for Visual Studio 2015 called 'SQLite for Universal App Platform' to access SQLite db's. I decided to upgrade VS2015 Professional to VS2017 Community Edition. That went well and for some reason I decided to upgrade to the extension 'SQLite Universal Windows Platform v3.20.1' after uninstalling the old extension. Then I added the new extension in the reference manager.
When building the solution I got the error in the C++/CX project that the SDK 'SQLite.UWA.2015, Version 3.9.2' could not be found. This makes sense, so I changed all strings in the vcxproj file of the C++/CX project to 'SQLite.UWP.2015, Version 3.20.1'. Now I get the error:
fatal error C1083: Cannot open include file: 'sqlite3.h': No such file or directory
I added manually the 'sqlite3.lib' to the Additional Dependencies, because that somehow got erased at some point in time. This however did not help.
Anyone an idea, what the problem might be or what to check?

How do I build a native binary on .NET Core using the current preview?

Using the current .NET Core preview, how do I compile (Publish ?) a native binary for a console application. I am on Mac OS 10.11.
I did the following:
dotnet new
dotnet restore
dotnet publish
I kind of expected "publish" to build a native binary for me, but it did not. It places a .dll, along with some JSON, in the publish folder ? I should mention the application runs fine when using dotnet run.
So, how do I get a native binary for my simple console application ?
According to an MS dev on the Slack channel, native compilation was removed/disabled in RC2 since it wasn't deemed ready yet.
There does seem to be a little bit of interest in it, so I've been debating whether to try to get it running myself, from the CLI source.
Otherwise, we'll just have to wait, but I agree, huge disappointment.
EDIT: just for completeness, I should add that .NET Core and .NET Native are available for UWP / Windows Store apps, though obviously this is not cross-platform.
EDIT #2: since this seems to continue to be getting attention, the new way that this is planned on being done is CoreRT, currently in active development.

Publishing Windows Phone 8 apps with sqlite database

Considering that an app using a sqlite db, needs to be build for x86 platforms in order to run on the emulator and under ARM in order to get deployed on a device.
The question is, how does one publish a WP8 app with a sqlite database? Under which active solution platform in the configuration manager menu should the project be build in order to pass the store verification?
When publishing to the store you publish the ARM version, because that is the only version that can work on an actual device.
Just set the Build Configuration to target ARM and set it to Release. Then look in the Bin/ARM/Release folder for the .xap package.

Is sqlite db file available under any platform?

For example, can I generate a SQLite db file and put it as a resource in the project. When the project first launches, copy the db into isolated storage without worrying this db file may be unavailable in the phone. Furthermore, can I copy this empty db file into another platform, like android or iPhone, and operate this db by in SQLite api of the platform.
From the SQLite web site:
A database in SQLite is a single disk file. Furthermore, the file format is cross-platform. A database that is created on one machine can be copied and used on a different machine with a different architecture. SQLite databases are portable across 32-bit and 64-bit machines and between big-endian and little-endian architectures.
So yes, when you've validated that the SQLite API is available everywhere you want to use it, that should be fine as a storage format.
EDIT: And yes, SQLite does work on Windows Phone 7, using this Codeplex project or this one.
Yes. We are using the same SQLite database in an iOS, Android and WP7 app. I've written a quick start guide here: http://wirebear.com/blog/2010/11/12/using-sqlite-in-your-wp7-app
The above blog post covers copying your database from your resources to isolated storage and correctly configuring SQLite to work on your device.
The SQLite version is compatible with Android - iOS - WindowsPhone as far I have experimented. I have created SQLite DB on a Mac Desktop and copied it into projects along with data into each of these platforms. Everything worked fine no issues.
Ref:
http://www.sqlite.org/download.html
Precompiled Binaries for Windows Phone 8
sqlite-wp80-winrt-3071502.vsix (2.72 MiB)
A complete VSIX package with an extension SDK and all other components
needed to use SQLite for application development with Visual Studio
2012 targeting Windows Phone 8.0. (sha1:
4cab3fd698402bf30448c64e39001103c10ff82b)
The download page itself lists the entire code and binaries for different platforms. Using a PC/Mac for creating a DB is convenient option.
You can use SQLite manager for doing so on a Windows or Linux PC.
SQLite Manager (Preferred by Myself)
http://sqliteman.com/
There are also extensions for Chrome and Firefox, which makes SQLite Available for almost any platform to Manage them.
Firefox Plugin for managing those files.
https://code.google.com/p/sqlite-manager/
codev.it also allows to enable editing SQLite Files.
As far as DB is concerned, Exporting them from the device is as described by #Jon Skeet
SQLite 3.7 is more compatible with Windows Phone. Since SQLite DBs are backward compatible, there isn't any need to worry weather your DB works on older 2.x version or 3.x..
Hope this helps.
#Bhuro As you want a detailed procedure for using SQLite db in a Windows Phone 7 app, Here is a good post Native Database Programming via Sqlite Client for Windows Phone.
I have successfully followed the same process in my WP app. Try that and let me know if you get any doubt.
Good luck !!

Resources