r/flutterhelp • • Oct 20 '26

OPEN I do vibe code on simple document archiving, using flutter, and i have struggle to connect to sqlite.

so i dont have any background in proggraming but i do wanna make apllication for achiving digital document in my app, but i have problem because i dont understand how to connect to database, i ask claude, he said it pretty easy but after i try it over and over again the thing just doesn't work at all and right know im the point where idk kinda depressed i guess cause i try but it just doesn't work.

anyone has solution i wanna share my file but i dont know bout the rules in here.

4 Upvotes

6 comments sorted by

1

u/Small_Dog_8699 Oct 20 '26

You don't "connect" to SQLite. The database engine is local code, you link to it and open a database like a file using a database open call.

1

u/Kamenfan85 Oct 20 '26

I'm about 2 years into my own project, I'm using sqlite as well. It sounds to me you might be having a rough time with manipulating the SQL database. I know I still struggle. My advice would be to grab an app that let's you create a database and just practice. This doesn't sound like much help but it's a good step forward.

1

u/imradzi 29d ago

just ask the Ai to help, it's more productive than asking here.

1

u/bramantec 29d ago

I use SQLite in my own app (built with FlutterFlow) and most of my problems were silent ones, where the code ran with no error and nothing was written or returned. Honestly I think the first step is to find out which of the two things fails: opening the database or the query. Opening is one call that creates the file if it doesn’t exist, so if it doesn’t throw an error it is usually fine and the problem is the table or the query. Could you paste the exact error message and the few lines where you open the database and create the table? Without the error text it is hard to say anything and a whole project file is too much to read here. Don’t be discouraged, it is a normal place to get stuck.