Sqlite Basic With Go


(Newbie) #1

Can Anyone Send Me Simple Insert Update Delete Query With Sqlite Using Go.


(Norbert Melzer) #2

What have you tried so far and how is it not working?


(nathankerr) #3

I don’t have a specific resource for you, but I use go and sqlite3 frequently.

I use https://github.com/mattn/go-sqlite3 as my database/sql driver. Use it’s README.md to learn about connection strings.

Follow the Go database/sql tutorial to learn about general database use in Go. It uses MySQL as an example, but the sql is probably basic enough to transfer directly to sqlite.

Also, sqlite has great documentation. I start from https://sqlite.org/lang.html to figure out syntax, features, etc.

General questions like this are difficult to answer because we don’t know where you are coming from or what you already know. Explaining what you are trying to do, what you have done, what happened, and how what happened isn’t what you want to have happen will help us help you.


(Eric Lindblad) #4

http://nurmi-labs.blogspot.com/p/cookies.html

Neither golang, nor interface, specific, but sqlite3 may be used for cookies’ files.

As you asked for something simple copying in the above example a cookies.sqlite file and performing your operations (insert, update, delete, query) on such a copied file, readily available and already present on certain OSes, might be suitable for such operations.


(Dipak Kumar) #5

Prepared just for you @Rockstarr : https://github.com/dipakyadav/sqlite-crud-with-golang


(system) #6

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.