Re: [go-nuts] Easiest way to work with database

2017-10-22 Thread Josh Kamau
Here is a very basic example. No audio, just follow the code. https://www.youtube.com/watch?v=b81phqjXzEA Josh On Sun, Oct 22, 2017 at 4:47 AM, Shawn Milochik wrote: > Assumptions: > >- You're using the html/template package: https://golang.org/ >pkg/html/template/ >- You name your

Re: [go-nuts] Easiest way to work with database

2017-10-21 Thread Shawn Milochik
Assumptions: - You're using the html/template package: https://golang.org/pkg/html/template/ - You name your database connection variable "db" - You name the result variable from your query "rows" - You're using PostgreSQL - You check all your errors ^_^ Steps - Create a DB

Re: [go-nuts] Easiest way to work with database

2017-10-21 Thread Rodolfo
Vickey, you can work with timestamps, to me is the easiest way to work with time data in any language and framework, because always an Int value :D Good Luck! 2017-10-21 21:35 GMT-04:00 : > HiShawn, > > I just want to know say i have a test table in postgres. With 2 column one > date and anoth

Re: [go-nuts] Easiest way to work with database

2017-10-21 Thread vickey . coool
HiShawn, I just want to know say i have a test table in postgres. With 2 column one date and another string.i want to create an HTML table which can be updated and deleted by a click. Like Time| string X:xx| xyz update delete X:xx| xyz update delete X:xx| xyz update delete X:xx| x

Re: [go-nuts] Easiest way to work with database

2017-10-21 Thread Shawn Milochik
http://jmoiron.github.io/sqlx/ This is a really great reference. It is for another library, but the beginning of the tutorial is the most useful documentation I've seen for the standard library. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To

[go-nuts] Easiest way to work with database

2017-10-21 Thread vickey . coool
I work a lot with databases and i have recently started learning golang. Is three hardest language when comes to database. And there are no good places to find information. I am not able to work with databases even after searching and reading documentation and blog. I create typos and errors.