flat assembler
Message board for the users of flat assembler.

Index > Tutorials and Examples > Win32SQLite: a way to use SQLite with fasm

Author
Thread Post new topic Reply to topic
yeohhs



Joined: 19 Jan 2004
Posts: 195
Location: N 5.43564° E 100.3091°
yeohhs 24 Dec 2017, 21:09
A simple Win32 console program with example procs to manipulate a SQLite3 database.


Description: fasm source, resources file, and SQLite3 DLL
Download
Filename: win32sqlite.7z
Filesize: 191.45 KB
Downloaded: 1085 Time(s)

Post 24 Dec 2017, 21:09
View user's profile Send private message Visit poster's website Reply with quote
Mat-Quasar



Joined: 02 Mar 2025
Posts: 82
Mat-Quasar 20 Apr 2025, 15:49
I plan to do a GUI database program as my next project using SQLite3.

What type of database program you all can suggest to me? Maybe simple one. But I don't want do address book as I have done it before using HLL as hobby project.
Of course I also have done Point-Of-Sale system but that was complex database program not suitable to develop using Assembly language.

If I understand correctly, I tried OP example before in post #1, SQLite3 database in his example is file-based.
Post 20 Apr 2025, 15:49
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1708
Location: Toronto, Canada
AsmGuru62 20 Apr 2025, 17:28
"not suitable to develop using Assembly language"
Interesting, inside of all the Point-Of-Sale systems on the planet --- there is only Assembler!
Happy Easter, everyone!
Post 20 Apr 2025, 17:28
View user's profile Send private message Send e-mail Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 1149
Location: Russia
macomics 20 Apr 2025, 18:28
Mat-Quasar wrote:
What type of database program you all can suggest to me?

What about TODO? A task scheduler with tracking deadlines and a reminder.
Post 20 Apr 2025, 18:28
View user's profile Send private message Reply with quote
a



Joined: 10 Apr 2025
Posts: 17
Location: Ukraine
a 21 Apr 2025, 00:33
Apparently, according to WinRAR your file win32sqlite.res has been compressed into 0 bytes, which is according to information theory is impossible Laughing


Description:
Filesize: 2.8 KB
Viewed: 691 Time(s)

.png


Post 21 Apr 2025, 00:33
View user's profile Send private message Reply with quote
Mat-Quasar



Joined: 02 Mar 2025
Posts: 82
Mat-Quasar 21 Apr 2025, 01:42
macomics wrote:
Mat-Quasar wrote:
What type of database program you all can suggest to me?

What about TODO? A task scheduler with tracking deadlines and a reminder.


I am more into CRUD... Anyway, I will keep your suggestion in mind. Thanks.
Post 21 Apr 2025, 01:42
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1708
Location: Toronto, Canada
AsmGuru62 21 Apr 2025, 12:47
Please make a DB Engine which is not based on tables --- I mean not SQL based.
Every object in the database shall have the following fields:

- Type (integer value)
- Identifier (integer value, unique across the database)
- Name (text of some length, say, 128 characters)
- Storage (can be an offset into a large file plus length of the stored data)

Now, the data inside the storage would be a set of NAME=VALUE pairs, describing the properties of the object.
VALUE is always text, can be a path to an image or other data files.
It can be a descriptor of more elaborate nature: "go to file xxxx, seek to offset xxxx and load xxxx bytes".
Anything can be encoded into text.

The database shall have API to be able to:

- Enumerate objects of same type (return a set of their ID values)
- Find the object(s) by name (using wildcards too)
- Load the objects NAME=VALUE data and find the objects matching some conditions
- Should be able to change VALUE for a NAME
- Should be able to add/remove properties
- Of course, add/remove whole objects using their ID values or names.
Post 21 Apr 2025, 12:47
View user's profile Send private message Send e-mail Reply with quote
Mat-Quasar



Joined: 02 Mar 2025
Posts: 82
Mat-Quasar 21 Apr 2025, 14:31
I afraid it is more than what I am capable of.

I am here to learn Windows GUI programming and to learn database programming using Assembly language.

I have other projects currently keep in view, like an SDL2 / SDL3 game (based on Tomasz's example), and a NES emulator (or 6502 disassembler).

Not that I am not interested in doing a DB engine, but my past failures show that I don't have the talent to become a pioneer in anything.

ADD: Sometimes when I set the goal too high, I will start procrastinate.
Post 21 Apr 2025, 14:31
View user's profile Send private message Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 1149
Location: Russia
macomics 21 Apr 2025, 14:48
AsmGuru62 wrote:
Please make a DB Engine which is not based on tables --- I mean not SQL based.
MongoDB (git)
Post 21 Apr 2025, 14:48
View user's profile Send private message Reply with quote
Ali.Z



Joined: 08 Jan 2018
Posts: 820
Ali.Z 21 Apr 2025, 19:53
Mat-Quasar wrote:
ADD: Sometimes when I set the goal too high, I will start procrastinate.


just do stuff for sake of learning, be it an algorithm, system API, library API; those tiny stuff from different areas can be made modules into larger project.

_________________
Asm For Wise Humans
Post 21 Apr 2025, 19:53
View user's profile Send private message Reply with quote
Furs



Joined: 04 Mar 2016
Posts: 2625
Furs 22 Apr 2025, 15:18
Ali.Z wrote:
Mat-Quasar wrote:
ADD: Sometimes when I set the goal too high, I will start procrastinate.


just do stuff for sake of learning, be it an algorithm, system API, library API; those tiny stuff from different areas can be made modules into larger project.
Yeah and even if you abandon the project at some point, your knowledge remains, which will prove useful later even if it doesn't right now.
Post 22 Apr 2025, 15:18
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.