Skip to content

Instantly share code, notes, and snippets.

Created May 17, 2011 03:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/975923 to your computer and use it in GitHub Desktop.
Save anonymous/975923 to your computer and use it in GitHub Desktop.
pmichaud@plum:~/rakudo$ ./perl6 mysqlclient.p6
library_init [currently not working]
init
get_client_info: 5.1.54
real_connect
stat: Uptime: 18118 Threads: 2 Questions: 409 Slow queries: 0 Opens: 271 Flush tables: 1 Open tables: 24 Queries per second avg: 0.22
DROP DATABASE zavolaj
CREATE DATABASE zavolaj
USE zavolaj
CREATE TABLE nom
INSERT nom
affected rows 3
SELECT *, quantity*price AS amount FROM nom
field_count 5
store_result
Columns:
name
description
quantity
price
amount
row_count 3
fetch_row, fetch_lengths and fetch_field
free_result
Null PMC access in type()
in <anon> at line 88:NativeCall.pm6
in <anon> at line 111:NativeCall.pm6
in main program body at line 265:mysqlclient.p6
pmichaud@plum:~/rakudo$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment