B4J Question login and signup b4j - behnam_tr (first post)    Apr 25, 2024   (1 reaction) For offline Create a new table in the database called user, then from b4j Dim Sql1 As SQL Sql1.InitializeSQLite(File.DirApp, "mydb.db" , False) 'insert to DB Main.Sql1.BeginTransaction Try /// my db > user > id,name,pass,date Main.Sql1.ExecNonQuery2("INSERT B4J Question Easiest way to create database and run queries on it - kostefar (first post)    May 15, 2024   (1 reaction) Thanks everyone!
I found the jSQL library easy to use, creating a database without a file doing this:
sql1.InitializeSQLite("", ":memory:", True)
sql1.ExecNonQuery("CREATE TABLE table1 (col1 TEXT, col2 TEXT)")
Executing queries after loading the said data into it works like a charm. B4J Code Snippet Clone SQLite Database to SQLite Memory Database - tchart    Mar 29, 2023   (10 reactions) This is a prototype I wrote a while back that takes a source SQLite database and clones it to another SQLite database - in this case an in memory SQLite database. The code is prety straight forward, initialize the source (from) and destination (to) SQLite databases and call the CopySQLiteDB sub. B4J Code Snippet B4J Single Instance checker (Windows & Linux) irrespective of the Java version and packager used - walt61    Jul 04, 2023   (1 reaction) That's why the below 'Try' block with the SQL operations is there, ' and why it doesn't just open the database. A successful File.Delete is inconclusive. File.Delete(dir, fileName) Catch Return True End Try End If Try Dim sql1 As S B4J Question In Memory SQLite Database - stevel05 (first post)    Dec 20, 2019   (3 reactions) From Erel's B4xTable.b4xlib:
#if B4J
sql1.InitializeSQLite("", ":memory:", True)
#Else If B4A OR B4I
sql1.Initialize("", ":memory:", True)
#End If
Try whichever flavour you need. B4J Tutorial Backup SQLite DB with VACUUM INTO - RickV (first post)    May 25, 2023 Sqlite_Per_Vacuum.InitializeSQLite(filePath, fileName, False)
Sqlite_Per_Vacuum.InitializeSQLite(filePath, fileName, True)
these lines were to show what needed changing from false to true . I should have bolded the "true" as to avoid confusion.
My code in post #4 I think it was is working code fro B4J Question SQLite JDBC Driver with encryption and authentication support - OliverA (first post)    Oct 16, 2019   (2 reactions) Don't use InitializeSQLite. Use Initialize or Initialize2. Something like
sql.Initialize("com.sqlite.JdbcUrl","jdbc:sqlite:test.db")
That should open an unencrypted test.db SQLite database file that is located in the same directory as the the program file (.jar) or, while developing, in the Object Bug? 1 <> 1? - MrKim (first post)    May 27, 2020 MainForm.Show
sql1.InitializeSQLite("", ":memory:", True)
sql1.ExecNonQuery("CREATE TABLE DATA (X INTEGER)")
sql1.ExecNonQuery("INSERT INTO DATA VALUES(1)")
Dim rs As ResultSet = sql1.ExecQuery("SELECT X FROM DATA")
Dim M As Map
M.Initialize
If rs.NextRow Then
Lo B4J Question xyzBD, a Class that repackages SQL objects - eric19740521    Sep 07, 2022   (1 reaction) Exists(uc_DB_Path, dbName)==False Then Log("DB不存在??程式將自動建立 ") End If Log("uc_DB_Path= "&uc_DB_Path) SQLite.InitializeSQLite(uc_DB_Path, dbName, True) SQLite.ExecQuerySingleResult("PRAGMA B4J Question B4J Connection Pool Examples? - AKJammer (first post)    Jun 19, 2020 But SQLite initialization is
Common.sql.InitializeSQLite(dbDirectory,Common.SqlDbName, False)
How do you initialize a SQLite database into the pool?
Hmmm. Just did some checking... You can't. https://www.b4x.-concurrent-access-to-sqlite-databases.39904/#content
So I'll have to access the dat Page: 1   2   3   4   5   6   7   Powered by ColBERT |