Skip to content

Instantly share code, notes, and snippets.

@WoolWarrior
WoolWarrior / product.go
Created September 11, 2019 14:48
qor-admin replacing sqlite3 with dummy object and dynamoDB
package models
import (
"bytes"
"encoding/json"
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
@WoolWarrior
WoolWarrior / main.go
Last active September 7, 2019 07:28
qor-admin replacing sqlite3 with dummy object - 2nd attempt (worked)
package main
import (
"database/sql"
"fmt"
"net/http"
"time"
"github.com/getlantern/deepcopy"
"github.com/jinzhu/gorm"
@WoolWarrior
WoolWarrior / main.go
Created September 7, 2019 07:24
qor-admin replacing sqlite3 with dummy object - 1st attempt (web not displaying as expected)
package main
import (
"database/sql"
"fmt"
"net/http"
"time"
"github.com/getlantern/deepcopy"
"github.com/jinzhu/gorm"
@WoolWarrior
WoolWarrior / main.go
Last active September 7, 2019 07:21
qor-admin naive implementation - sqlite3
package main
import (
"fmt"
"net/http"
"github.com/qor/qor"
"github.com/qor/admin"
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/sqlite"
)