I come from a web/PHP background and use MySql often. So I want to use SQLite since the syntax is pretty much the same, but the resources I found are either for B4A or is pretty confusing.
Does anyone have a thread or resource I can use as reference? Or can someone point me in the right direction?
Got it to work. Was on the first chapter of the docs .T_T.
Apologies.
B4X:
If File.Exists(File.DirData("sql"), "patient.db") = False Then
'copy the default DB
File.Copy(File.DirAssets, "patient.db", File.DirData("sql"), "patient.db")
End If
sql.InitializeSQLite(File.DirData("sql"), "patient.db", True)
WebView1.LoadHtml(DBUtils.ExecuteHtml(sql,"SELECT * FROM login",Null, -1, False))
Here is my code that downloads transactions from paypal. It starts by getting an access token. This is required. To do that requires that you have a client ID and Secret from paypal. Get those here: https://developer.paypal.com/api/rest/#link-getclientidandclientsecret The software creates a...
Version 2.10 A simple app to demonstrate the use of MiniORMUtils library. Platforms supported: B4A, B4i, B4J GitHub: https://github.com/pyhoon/MiniORM-B4X Depends on: B4XPages B4XPreferencesDialog MiniORMUtils (depends on SQL) XUI Views
If you plan to work with client-server environment, I have you covered with the following options:
1. [B4X] User Login Client where the SQLite or MySQL database is hosted on a [B4J] User Login Server
This solution is a bit complex as it involved user login security with access token.
2. [B4J] Web API Server (v3)
It is recommended to start with this server template. The first option above is based on this project template.
Understand how the Web API Server works and use [B4X] Web API Client to connect to the SQLite or MySQL database.
3. [B4J] jRDC2 Server (SQLite, MySQL, MS SQL, Firebird, Postgresql, DBF)
You can also use jRDC2 server. I have also created [B4X] jRDC2 Client (B4J, B4A, B4i) to connect to this server.