@@ -10,7 +10,7 @@ It is meant to be used with desktop and mobile apps.
1010Place the library in the message path, then call the rigLoadDatabase
1111function to connect to your database like:
1212
13- ` get rigLoadDatabase(tParams, tReturn, tActiveGroup, tOptions) `
13+ get rigLoadDatabase(tParams, tReturn, tActiveGroup, tOptions)
1414
1515- ** tParams** can optionally be a path
1616 to a database or an array of database settings like the settings
@@ -28,11 +28,13 @@ Alternatively you can connect to an in-memory database or to a
2828new database. Build an initial table using the rigNewTableStructure()
2929function and connect using the rigConnectDB handler like:
3030
31- `put "INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT" into tInitTableA[ "recipe"] [ 1 ] [ "ID"]
32- put "varchar(255,0) DEFAULT NULL" into tInitTableA[ "recipe"] [ 2 ] [ "Name"]
33- put "TEXT" into tInitTableA[ "recipe"] [ 3 ] [ "Directions"]
34- put rigNewTableStructure(tInitTableA) into tInitTable
35- rigConnectDB tDBfilePath, tInitTable tReturn tActiveGroup tOptions`
31+ put "INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT" into tInitTableA["recipe"][1]["ID"]
32+ put "varchar(255,0) DEFAULT NULL" into tInitTableA["recipe"][2]["Name"]
33+ put "TEXT" into tInitTableA["recipe"][3]["Directions"]
34+
35+ put rigNewTableStructure(tInitTableA) into tInitTable
36+
37+ rigConnectDB tDBfilePath, tInitTable tReturn tActiveGroup tOptions
3638
3739- ** tDBfilePath** the value of this optional parameter can be
3840 empty or a file path or "memory" or "mem" or "in-memory" or
0 commit comments