Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by KazYamof · Dec 08, 2016 at 10:40 AM · c#databasedata storagelinq

Any solution for NoSQL, local database, C#, compatible with Unity?

I want to use a noSql database to store some data on local disk. I don't want a WEB server, or to install any service database like MySQL/MSSQL Server, and no junk sql code like "select a.a, b.a from a inner join b..." messing with my code. What could I use?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Bruce3D · Jul 01, 2018 at 04:06 PM

A stable C# nosql solution iBoxDB http://www.iboxdb.com

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by $$anonymous$$ · Dec 08, 2016 at 02:42 PM

Have a look at scriptable objects, they are like data container objects. Should really be good enough for what you're looking for.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image KazYamof · Dec 08, 2016 at 04:03 PM 0
Share

I've found one called SIAQODB: "...a NoSQL embedded object and document database engine that currently runs on .NET, $$anonymous$$ono$$anonymous$$ac, Universal Windows Platform (UWP), Xamarin.iOS, Xamarin.Android, Xamarin.$$anonymous$$ac and Unity3D. "

It's free if you store less than 100 objects per type/table, so it works for what i need. There's a Database $$anonymous$$anager that unfortunatelly I can't run to edit the database outside Unity (error with x86 / x64 version of the database file and the manage application), I'm looking for a solution on the siaqodb forum.

The basic usage is:

 using Sqo;
 class $$anonymous$$yDatabase : $$anonymous$$onoBehaviour
 {
   void Start() 
   { 
       var db = new Siaqodb(Application.dataPath + @"\databaseFolder\"); 
      db.StoreObject(new Foo("$$anonymous$$az", 26);
      print(db.LoadAll<Foo>().Count);
   }
 }
 
 public class Foo
 {
   public string Name {get;set;}
   public int Age {get;set;}
   
   public Foo(string name, int age)
   {
     this.age = age;
     this.name = name;
     }
 }


But I'm still looking for other solutions to compare. I will take a look about Scriptable Objects ( I've never had to use them before).

avatar image
0

Answer by markmeeus · Mar 19, 2017 at 07:07 PM

Hi @KazYamof,

I'm the author of MarcelloDB (http://marcellodb.org) which is an embedded nosql database. It should be a good fit for your use case.

Below is the example as for siaqodb, ported to marcellodb.

 class MyDatabase 
 {
     public class Foo
     {
         public int ID { get; set; }
         public string Name { get; set; }
         public int Age { get; set; }

         public Foo (int id, string name, int age)
         {
             this.ID = id;
             this.Age = age;
             this.Name = name;
         }
     }

     void Start ()
     {
         var dataPath = Application.dataPath + @"\databaseFolder";
         var session = new MarcelloDB.Session(new MarcelloDB.netfx.Platform(), dataPath);
         var foos = session["data"].Collection<Foo, int>("AllTheFoos", f => f.ID);

         //persist
         foos.Persist(new Foo(1, "Kaz", 26));

         //enumerate
         foreach(var f in foos){
         }

         //find individual item:
         foos.find(1);
     }
 }


Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Genom · Apr 17, 2017 at 11:22 AM 0
Share

Hi @markmeeus, I'm trying $$anonymous$$arcelloDB in my Unity app, but it is a pcl (so it targets .net 4 or higher) do I have to refactor it to compile .Net 3.5 or should it "just" work if I add the dll as a plugin?

regards!

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

255 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

Distribute terrain in zones 3 Answers

Store data for tile based system 1 Answer

Storing my choose your own adventure questions/actions 1 Answer

What is the best way to create and store levels in Android game. 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges