Skip to content

Instantly share code, notes, and snippets.

View bukakoding's full-sized avatar

bukakoding bukakoding

View GitHub Profile
@bukakoding
bukakoding / try_catch.py
Last active November 6, 2024 12:59
Example of try-catch
try:
conn = mysql.connector.connect(
host="root",
user="myuser",
password="mypassword"
)
except Exception as e:
print("cannot connect database", e)
@bukakoding
bukakoding / dynamic_fetch_query.go
Created November 11, 2024 15:48
Fetching query dynamically with Golang
package main
import (
"database/sql"
"fmt"
"log"
_ "github.com/go-sql-driver/mysql"
)