# README
GORM SingleStore Driver
Attention: The code in this repository is intended for experimental use only and is not fully tested, documented, or supported by SingleStore. Visit the SingleStore Forums to ask questions about this repository.
Installation
Make sure you already have gorm installed. Then add the SingleStore driver as a dependency to your Go project.
go get github.com/singlestore-labs/gorm-singlestore
This uses go-sql-driver/mysql under the hood.
Quick Start
import (
"github.com/singlestore-labs/gorm-singlestore"
"gorm.io/gorm"
)
dsn := "root:password@tcp(localhost:3306)/gorm?charset=utf8&parseTime=True&loc=Local"
db, err := gorm.Open(singlestore.Open(dsn), &gorm.Config{})
Checkout https://gorm.io for more details.
Resources
# Constants
Treated as an auto_random field for tidb.
ClauseFor for clause.ClauseBuilder FOR key.
ClauseOnConflict for clause.ClauseBuilder ON CONFLICT key.
ClauseValues for clause.ClauseBuilder VALUES key.
No description provided by the author
# Variables
CreateClauses create clauses.
DeleteClauses delete clauses.
QueryClauses query clauses.
UpdateClauses update clauses.