eden / mysqlgo Goto Github PK
View Code? Open in Web Editor NEWMySQL bindings for Go
License: BSD 2-Clause "Simplified" License
MySQL bindings for Go
License: BSD 2-Clause "Simplified" License
Hi,
I get an error when installing !!
[02:11:37| userName :/temps/go/mysqlgo > make install/temps/go/mysqlgo >
cd db; make install
make[1]: Nothing to be done for `install'.
cd mysql; make install
/Users/userName/bin/6g -o go.6 const.go bound_data.go mysql.cgo1.go _cgo_gotypes.go
mysql.cgo1.go:248: undefined: strings.Bytes
make[1]: *** [go.6] Error 1
make: *** [mysql_install] Error 2
[02:11:38| userName :
I'm in the process of building a backup program in go. As you might imagine I want to store a stat entry in a database. The go stat entry is mentioned in:
http://golang.org/pkg/os/#Dir
I created a table with:
create table dirs (dev BIGINT UNSIGNED, Ino BIGINT UNSIGNED, Nlink BIGINT UNSIGNED, Mode INT UNSIGNED, UID INT UNSIGNED, Gid INT UNSIGNED, Rdev BIGINT UNSIGNED, Size BIGINT UNSIGNED, Blksize BIGINT UNSIGNED, Blocks BIGINT UNSIGNED, Atime_ns BIGINT UNSIGNED, Mtime_ns BIGINT UNSIGNED, Ctime_ns BIGINT UNSIGNED, Name VARCHAR(512), FollowedSymLink TINYINT(1));
When I try to popular it it seems like that type is unsupported:
dir = /home/bill/src/go inode= 7856502
Error: Unsupported param type *reflect.Uint64Value
I believe the line that triggered this was:
stmt, e = conn.Prepare("INSERT INTO dirs values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
_, e = conn.Execute(stmt, d.Dev,d.Ino,d.Nlink,d.Mode,d.Uid,d.Gid,d.Rdev,d.Size,d.Blksize,d.Blocks,d.Atime_ns,d.Mtime_ns,d.Ctime_ns,d.Name,follow);
follow is just an int that is 1 or zero because there wasn't support for boolean, which is rather easy to work around.
Hopefully this is a real problem, and not a mistake of mine.
BTW, great job on mysqlgo. It was very easy to download, install, and the inclusion of a working example was particularly nice.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.