robertohuertasm / SQLite4Unity3d

SQLite made easy for Unity3d
MIT License
1.28k stars 265 forks source link

Does it support WebGL? #53

Closed NatsXDLageg closed 7 years ago

NatsXDLageg commented 7 years ago

I was looking at the DataService.cs file and didn't find a condition to create the database file if in WebGL deployment. The expected behaviour for WebGL is in the else directive? I tryied to run my Unity project and the console warned that the specified file could not be found.

sandolkakos commented 7 years ago

The WebGL platform doesn't support the Sqlite DLLs :(

NatsXDLageg commented 7 years ago

@sandolkakos @robertohuertasm Hmm, that is sad. But if I put all my Sqlite code into my server, it would work, right?

robertohuertasm commented 7 years ago

If you put your SQLite in the server then you'll be dealing with an API and then you'll have to be connected. Essentially, you'll be facing another kind of app architecture which won't involve the use of this library at all. Even you can think of different database alternatives which will provide you more performance than SQLite.