Sqlfiddle unofficial API for Go
Go to file
Lunny Xiao 62ce714f95
Merge branch 'master' of github.com:go-xorm/sqlfiddle
2018-08-21 16:53:27 +08:00
.gitignore enhance result checking & add file head comments & add some test cases 2018-08-20 13:03:29 +08:00
LICENSE update license 2018-08-21 16:52:18 +08:00
README.md improved API 2018-08-19 09:15:42 +08:00
sqlfiddle_test.go enhance result checking & add file head comments & add some test cases 2018-08-20 13:03:29 +08:00
sqlfiddle.go enhance result checking & add file head comments & add some test cases 2018-08-20 13:03:29 +08:00

SQL Fiddle API (UnOfficial)

Purpose

This Go library is aimed to provide an API to operate http://sqlfiddle.com/

Usage

fiddle := NewFiddle("")
res, err := fiddle.CreateSchema(Mysql5_6, `create table person(id int not null auto_increment,
    name varchar(8),
    birthday datetime,
    constraint pk__person primary key(id));`)

ret, err := fiddle.RunSQL(Mysql5_6, res.Code, "select * from person;")