x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How correctly include SQLite?

I used solution from this post: https://answers.unrealengine.com/questions/184626/sqlitesupport-module-currently-broken.html

And for usage SQLite this: https://answers.unrealengine.com/questions/143256/46-how-to-use-sqlitesupport.html

But anyway I can`t include:

/#include "SQLiteDatabaseConnection.h"

it works only in this way:

/#include "Runtime/SQLiteSupport/Public/SQLiteDatabaseConnection.h"

When I call FSQLiteDatabase db(); it returns:

error C4930: 'FSQLiteDatabase db(void)': prototyped function not called (was a variable definition intended?)

It can be declared like:

FSQLiteDatabase db;

But db.Open(TEXT("TestDatabase.db"), nullptr, nullptr); returns:

function "FDataBaseConnection::Open" (declared at line 222 of "...\Database.h") is inaccessible

How SQLite can be included?

Product Version: UE 4.9
Tags:
more ▼

asked Sep 23 '15 at 10:08 AM in C++ Programming

avatar image

NickShargan
44 13 14 14

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

4 answers: sort voted first

The best way that I find is include sqlite3 as 3rd party (as any static library)

For this:

  1. Get sources. I used https://www.sqlite.org/download.html (amalgamation)

  2. Build it (create new projects->sqile3 files->build it in Debug mode). After this you can find *.lib file

  3. Include it as 3rd party.

more ▼

answered Oct 15 '15 at 10:04 AM

avatar image

NickShargan
44 13 14 14

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

We hope this plugin can help you.

HiSQLite3 (SQLite3 For UE4)

more ▼

answered Apr 25 '18 at 01:59 AM

avatar image

YeHaike
0 4 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I get access to SQLite database by plugin KhArtNJava/SQLite3UE4 (https://github.com/KhArtNJava/SQLite3UE4)

Firstly it wasn`t clear how use KhArtNJava (at least how get results of query)

Here https://www.reddit.com/r/unrealengine/comments/3jg5jn/does_anybody_know_how_to_use_a_database_such_as/ posted link on detailed guide how use plugin.

Guide link: https://docs.google.com/document/d/110YEXbs5HP1Fr1llUNg_JL5Vrgmw7lrgdB-zCC338Cc/edit

more ▼

answered Sep 24 '15 at 08:07 AM

avatar image

NickShargan
44 13 14 14

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

As I see now this plugin isn`t suitable for packaging. It returts error described here https://github.com/Jusas/SQLite3UE4/issues/11

more ▼

answered Oct 08 '15 at 01:32 PM

avatar image

NickShargan
44 13 14 14

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question