Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

sqlite alternative?

Discussion in 'Editor & General Support' started by miniduck, Jan 27, 2013.

  1. miniduck

    miniduck

    Joined:
    Sep 27, 2012
    Posts:
    117
    Hey guys!

    I need to read some data for my game to read during gameplay(offline always), about 7000 rows, 5 columns. It's all created in beforehand and should be packed in the final package.
    Seems like I cannot use sqlite with ios/android basic license so what alternatives do I have here, maybe another solution than sqlite?

    Thanks in advance!
     
    Last edited: Jan 27, 2013
  2. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    5,341
    There are several Sqlite packages in the asset store.

    But this one is supposed to work on IOS and Android, and it's free. I was planning to try it out:

    https://github.com/praeclarum/sqlite-net

    edit: Note, I have not tried this, maybe your best bet is one of the asset store versions.
    Or you could of course just serialize and deserialize them, and not even use a database at all.
     
  3. miniduck

    miniduck

    Joined:
    Sep 27, 2012
    Posts:
    117
    Thanks for your suggestion!
    Will take a look at that one.
    I thought all plugins in the asset store were using .net sockets which is only for pro nowadays which would rule me out?
     
  4. miniduck

    miniduck

    Joined:
    Sep 27, 2012
    Posts:
    117
    Got an answer from SqliteKit dev saying it doesn't depend in any socket dll's.
     
  5. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    5,341
    Sqlite is all local storage, so sockets should not be the case for sqlite db. Anyway, here is one that specifies that it works on indie/pro:

    https://www.assetstore.unity3d.com/#/content/3845

    This one is all source:

    https://www.assetstore.unity3d.com/#/content/4334

    but I would try the one I mentioned in the previous message first :)
     
unityunity