Categorygithub.com/singlestore-labs/gorm-singlestore
modulepackage
1.2.0
Repository: https://github.com/singlestore-labs/gorm-singlestore.git
Documentation: pkg.go.dev

# 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

# Functions

No description provided by the author
No description provided by the author

# 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.

# Structs

No description provided by the author
No description provided by the author
Index table index info.
No description provided by the author