IoMySQL: MySQL binding for Io
Io에 MySQL 바인딩이 아직 없길래 작성해 보았다. 원래 C는 좋아하지도 않고, 거의 써본 적도 없는데, 내가 지금까지 C로 작성한 코드 중에서는 가장 실용적이다. 프로젝트 홈페이지에서 받을 수 있다.
There’s no MySQL binding for Io yet, so, I wrote it. I don’t like C language actually, and I have few experience about C, however, It is most functional code I ever wrote in C language. You can get it at project homepage.
사용할 때는 Io 소스 디렉토리 내의 addons에 IoMySQL을 받은 뒤 빌드해서 사용하면 된다.
To use, download IoMySQL into addons in Io source directory, then build it.
$ cd Io-SourceFolder
$ svn co http://io-mysql.googlecode.com/svn/trunk/ addons/MySQL
$ io build.io -a MySQL
아래 코드는 그냥 예제.
Following code is a just example…
my := MySQL establish("localhost", "user", "password", "database")
# Get rows by Map
my queryThenMap("SELECT col FROM rel") foreach(at("col") println)
# Get rows by List
my query("SELECT col FROM rel") foreach(at(0) println)
my close
덧. 영어가 어색해서 죄송합니다. 제 모국어가 아니거든요. ㅋㅋ
PS. Sorry for my ugly English. It’s not my primary language.

March 27th, 2007 at 4:37 AM
Hi. I’ve tried building the addon as you’ve instructed. But I get some errors and at the end it says cannot mysqlclient. I’m working on Ubuntu Edgy and have got the latest mysql client libraries installed. Which version does your addon build against? Btw, A direct native driver for Io is very convenient. Thanks and keep up the effort.
March 27th, 2007 at 11:45 AM
Hi. I worked this addon on Gentoo, and installed MySQL by emerge(dev-dev/mysql 5.0.26-r1). I wrote build.io loosely, so, in my opinion, it is just a problem of library path finding. Anyway, I’ll fix it soon.
Thank you.
March 27th, 2007 at 11:15 PM
글 내용보다 덧글이 더 놀랍네요 ㅎㅎ web에는 국경이 없었지요 아마?
March 28th, 2007 at 6:09 PM
실제 땅에도 국경은 없어. 국경은 지도에 있지. 도메인 끝에도 있고.
March 30th, 2007 at 6:17 PM
헉…저 영어 쓰시는 분은 누구시죠? 해석이 않되요.
March 30th, 2007 at 9:15 PM
저도 아는 분은 아니고, 제가 만든 프로그램이 자기 환경에서 빌드되지 않는다고 질문을 한 것뿐입니다.
April 2nd, 2007 at 4:54 PM
흠…그래도 이해가 안가는 군요…컴퓨터에 대해선 원시인이라…프로그램도 만드셨군요, 딜리아님.
April 2nd, 2007 at 5:28 PM
제 포스팅의 대부분이 컴퓨터 프로그래밍 관련 이야기들입니다. ㅋㅋ
제 닉네임은 /da:lia/—“달리아”, “다알리아”로 읽습니다. 꽃 이름입니다. 그냥 제 이름(홍민희)을 불러주세요. ㅎㅎ