• This repository has been archived on 21/Aug/2024
  • Stars
    star
    116
  • Rank 303,894 (Top 6 %)
  • Language
    JavaScript
  • License
    Other
  • Created almost 15 years ago
  • Updated almost 14 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

[obsolete] pure Javascript MySQL network driver for node.js

node-mysql

This library is obsolete.

please check https://github.com/felixge/node-mysql

node-mysql is pure Javascript MySQL network driver for node.js

Want to help

It's for testing stage. Now It can use for this driver developer only.

I have a lot of tasks to make stable driver. I want your help.

Tests

I need your help in testing this driver. It will be great if you use it for testing or prototyping. It's testing stage, It's not for real project If you find bugs, strange thing and unknown things, please send them to @masuidrive_en or github issues If you write test code (test folder), It's awesome!!

Documentation

Sorry, This driver's documentation is less. My English skill is horrible. :-(

This drivers is came from Ruby's mysql driver. Almost API is same as mysql.rb. maybe this document is useful reference.

Pool mananager

Currently, this driver supported single connection only. We need multi mysql driver pool manager for multi connections. And connection pool require transaction support.

Example

var sys = require('sys');
var mysql = require('./lib/mysql');

/*
> mysql -u root
CREATE DATABASE nodejs_mysql;
GRANT ALL ON nodejs_mysql.* TO nodejs_mysql@localhost IDENTIFIED BY "nodejs_mysql";
*/
var conn = new mysql.Connection('localhost','nodejs_mysql', 'nodejs_mysql', 'nodejs_mysql');
conn.connect();
conn.query("CREATE TEMPORARY TABLE test1(intval INTEGER, strval TEXT, timestampval TIMESTAMP, boolval BOOLEAN);");
conn.query("INSERT INTO test1 VALUES(1,'a',now(),true);");
conn.query("SELECT * FROM test1;",
    function(result) {
        for(var i=0; i<result.records.length; ++i) {
            sys.puts("Result: "+sys.inspect(result.toHash(result.records[i])));
        };
    },
    function(error) {
        sys.puts("Error: "+sys.inspect(error));
    });

And see exmaples folder.

Requirements

Optional:

License

MIT License. See LICENSE file.

Who?

Code by Yuichiro MASUI(masuidrive) and awesome contributers. please see AUTHORS

Related licenses

MySQL protocol encode/decode from tmtm's ruby-mysql.

Promise library

  • http://nodejs.org/
  • Copyright 2009, 2010 Ryan Lienhart Dahl. All rights reserved.
  • License: MIT

SHA1 library from Takanori Ishikawa.

pack/unpack from php.js

More Repositories

1

open-wripe

https://wri.pe source code
Ruby
621
star
2

miyamoto

Google Apps Scriptで書かれたSlack用勤怠管理Botの「みやもとさん」
JavaScript
521
star
3

slack-summarizer

OpenAI's ChatGPT API to create and post a summary of a Slack public channel.
Python
171
star
4

TiStoreKit

StoreKit(In App Purchase) module for Titanium Mobile iPhone
JavaScript
101
star
5

ti-websocket-client

WebSocket client for Titanium Mobile 1.7.x+
JavaScript
70
star
6

pr_geohash

GeoHash library for pure Ruby
Ruby
64
star
7

TiAdMob4iPhone

AdMob module for Titanium Mobile iPhone
Objective-C
58
star
8

ti-evernote-api

Evernote API bridge for Titanium Mobile
Objective-C
39
star
9

TiMultitouch

Multitouch module for Titanium Mobile
Objective-C
32
star
10

TitaniumSamples

JavaScript
26
star
11

react-starterkit

Reactの開発環境
CoffeeScript
25
star
12

TiHandson

JavaScript
25
star
13

gae-minwiki

100 lines WikiEngine on Google App Engine
JavaScript
10
star
14

colored_eraser

手書きメモアプリの特定色の消せる機能のProof of Concept
JavaScript
10
star
15

TiCustomCamera

Objective-C
10
star
16

follow_me_now

JavaScript
9
star
17

esp-idf-codespaces

Dockerfile
9
star
18

esp-nimble-nordic-uart

NimBLE Nordic UART driver for ESP-IDF
C
9
star
19

TiFacebookExt

Titanium.Facebook extension module for Titanium Mobile for iPhone
Python
9
star
20

TiInAppPurchase

InAppPurchase for Titanium mobile iphone
Python
8
star
21

vagrant-remote

Shell
7
star
22

mobiruby-rubyconf2012

Presentation slides and note for RubyConf 2012 in Denver.
6
star
23

turbo-stimulus-typescript-example

JavaScript
6
star
24

mruby-mindstorms-ev3

mrbgems MINDSTORMS EV3
Ruby
5
star
25

micropython-usbkeyboard

USB keyboard driver that works with MicroPython ESP32-S3
C
4
star
26

oauth2_provider

Ruby
4
star
27

tidocs

tidocs.com
JavaScript
4
star
28

mobiruby-ios

Moved
4
star
29

react-handson-1

JavaScript
4
star
30

juno-with-user-auth-on-gae

juno-with-user-auth-on-gae
Python
3
star
31

wordcards

Ruby
3
star
32

esp-network-config-ble

C
3
star
33

hatena-bookmark-anywhere

ブログにはてブのコメントを表示するhatana_bookmark_anywhere.js
JavaScript
3
star
34

object_extender_rb

Call class statements with extended object. It's without class pollution.
Ruby
2
star
35

journals

HTML
2
star
36

masuidrive.jp

my website
HTML
2
star
37

vsc-esp-updater

TypeScript
2
star
38

masuidrive-test

test for me
2
star
39

mrbgems-example

mrbgems-example
Ruby
2
star
40

node-with-docker

JavaScript
1
star
41

drivecss

Yey another extended CSS
JavaScript
1
star
42

SkyWay-iOS

Ruby
1
star
43

mruby-debug-example

mruby debugger example
C
1
star
44

segmentation-kit-for-ja-full-context-label

音声ファイルと読みのテキストから音素アライメント付きのフルコンテキストラベルファイルを生成する
Python
1
star
45

mruby-debug-step-exec

mruby-debug-step-exec
C
1
star
46

TiMob-Sample1

JavaScript
1
star