Closed dhoepfl closed 2 years ago
Hm, right. The problem ist that it doesn't distinguish between binary SQLite databases (which this feature is intended for) and plain SQL source scripts as "resources". Need to fix that, should be easy 👍
There is another variant of this, when a binary DB is used alongside SQL files, the copied DB is just the raw DB. E.g.:
So maybe the proper solution is actually to generate the combined DB and copy that 🤔
OK, that should be fixed (only generate module accessor, when there is an actual database file in the resources).
While testing the fix of #8, using develop branch (works) I noticed the following:
I added a database creation script
Li_Talents.sql
but forgot to exclude it from the project.This created the following code within the
struct LiTalents
:Notice how this tries to use the URL to the SQL file when constructing the instance. Using a plain SQL file results in an assertion failure when using the instance:
The
module
static is not generated if the SQL file is not included in the project.