Skip to content
This repository has been archived by the owner on Jun 20, 2021. It is now read-only.

Commit

Permalink
....review sqlite_c.sim example
Browse files Browse the repository at this point in the history
  • Loading branch information
Thecarisma committed Mar 7, 2019
1 parent e302057 commit ec6faa7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/more/sqlite_c.sim
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
*/
call simple.core.DynamicLoader
call simple.util.DateTime
callModule("libsimple_sqlite")
callModule("libsimple_sqlite") #add date to version

date = new DateTime()
db = __init_sqlite3()
__sqlite3_open("C:\wamp64\www\simple-lang.io\assets/simple_lang_io.db", db)
__sqlite3_open("../testfiles/simple_lang_io.db", db)

query = "
CREATE TABLE Versions (
Expand Down Expand Up @@ -103,9 +103,9 @@ query = "

query = "
INSERT INTO ADMIN (Id, UserName, Email, FullName, password)
VALUES (1, 'thecarisma', 'azeezadewale98@gmail.com', 'Azeez Adewale', 'hjhj' );
VALUES (2, 'Youngestdev', 'abceek2018@gmail.com', 'Abdulazeez Abdulazeez Adeshina', 'seriously' );
"
#display __sqlite3_exec(db, query)
#display __sqlite3_errmsg(db) + nl
display __sqlite3_exec(db, query)
display __sqlite3_errmsg(db) + nl

__sqlite3_close(db)

0 comments on commit ec6faa7

Please sign in to comment.