mysql

package
v0.1.0-beta.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mysql is a MySQL driver for Seedr. Entity (which represents table name in this case) and PrimaryKey must be specified for each Factory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db *sql.DB) driver.Driver

New creates new Driver.

Types

type MySQL

type MySQL struct {
	// contains filtered or unexported fields
}

MySQL driver for Seedr

func (*MySQL) Create

func (my *MySQL) Create(p driver.Payload) (results []map[string]interface{}, err error)

Create inserts payload Data into database and returns inserted records Entity is a table name. If PrimaryKey is not provided, no results will be returned.

Directories

Path Synopsis
internal
tests/models
Package test_models is an example of basic models setup.
Package test_models is an example of basic models setup.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL