|
Post by wiverson on Nov 30, 2021 22:32:35 GMT
I'd like to be able to run headless (i.e. no Unity runtime) test cases with SimpleSQL. Ideally test cases that run with the Standalone NUnit Launcher in JetBrains Rider.
Is this a) something that is currently supported and/or b) if not explicitly supported, something that folks would be interested in if I figure out how to make it work?
Off the cuff, it looks like a version/delegate of SimpleSQLManager w/o the using UnityEngine references would do the trick...?
|
|
|
Post by echo17 on Dec 1, 2021 14:00:10 GMT
SimpleSQL was designed primarily to be tightly integrated into the Unity environment for ease of use. An out-of-the-box turnkey solution, so to speak. I'm not sure how feasible it would be to try to decouple the code from Unity without a major re-write. I'm sure some people would be interested in this, so they would probably be grateful if you share your results. You would also need to modify SQLite.cs since it has some Unity debugging in it. Please see this FAQ on how to modify the source code: FAQ
|
|
|
Post by wiverson on Dec 2, 2021 0:50:59 GMT
I saw a few references to other folks doing similar stuff on the forum. I'd try to do it in a way to minimize changes. I did this for a few other Unity assets and it wasn't too bad. Is there a way to contribute the changes back to you? I don't want to just post your source up on the Internet. If you don't mind me asking, where did you start for SQLite.cs? Is it your own SQLite implementation from scratch or did you start from another project...?
|
|
|
Post by echo17 on Dec 2, 2021 13:34:55 GMT
Is there a way to contribute the changes back to you? I don't want to just post your source up on the Internet. Sure, you can send to my email address in the signature. If you don't mind me asking, where did you start for SQLite.cs? Is it your own SQLite implementation from scratch or did you start from another project...? I can't remember where I found it, but I left the licensing comments intact at the top of the file.
|
|
|
Post by wiverson on Dec 2, 2021 17:41:07 GMT
So, it looks like the source for the underlying SQLite project is sqlite-net. github.com/praeclarum/sqlite-net/blob/master/src/SQLite.csThe version included in SimpleSQL is // Copyright (c) 2009-2010 Krueger Systems, Inc. The version online is // Copyright (c) 2009-2021 Krueger Systems, Inc. So, you probably should grab an updated version. Also, wow, that's eleven years. Wow.
|
|