SQLite File open. read . write . deleat
Posted
#1
(In Topic #857)
Enthusiast

So I thought I would share my results for anyone else that is where I was a month ago (searching here for answers).
Not all of us here are EXPERTS (me included ) .. so this may be of help to some other New-be here
most of my information came from this site : SQLite Tutorial
So here is a module that will handle a SQLite file
If anyone has suggestions or problems or bugs let me know.
If you think this should be in the "Farm" please put it there.
Code (gambas)
- ' ' Gambas module file
- '' Requires gb.db.sqlite3
- '' Module file to handle SQLite file
- '' SQLite file handeling subroutines
- '' writen by GrayGhost4 Marvin Clavey June 2022
- $con.Type = "sqlite3" ' Defines the type of connection
- $con.Name = "data.SQL" ' database name is the name of the database file"
- '' Retreve all the data from sFilename that is in scolumnName
- sainfo.Add(RS[obj.Name])
- Return saInfo
- Inc x
- '' Deleat one reccord from the table with an indexed coluem
1 guest and 0 members have just viewed this.




