Skip to content

singlestore-labs/gorm-singlestore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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