Sqlfiddle unofficial API for Go
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lunny Xiao 62ce714f95
Merge branch 'master' of github.com:go-xorm/sqlfiddle
1 year ago
.gitignore enhance result checking & add file head comments & add some test cases 1 year ago
LICENSE update license 1 year ago
README.md improved API 1 year ago
sqlfiddle.go enhance result checking & add file head comments & add some test cases 1 year ago
sqlfiddle_test.go enhance result checking & add file head comments & add some test cases 1 year ago

README.md

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;")