[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

api[mysql] code

NativeObject
	subclass: #MySQL
	category: #MySQL !
MySQL class instanceVariableNames: ' current ' !
MySQL class buildAccessors: #(
	#(current initialize 'self @ self libraryHandle')
)! !
! MySQL class methodsFor: #private !
libraryHandle
	" Private - Returns the handle of the main module index. "

{'	return require("mysql");
'}! !

MySQL buildFunctions: #(
	#(createConnection #(_config) Connection)
	#(createPool #(_config) Pool)
	#(createPoolCluster #(_config) PoolCluster)
	#(createQuery #(sql values callback) Connection)
	#(escape #(value stringifyObjects timeZone))
	#(escape #(value stringifyObjects))
	#(escape #(value))
	#(escapeId #(value forbidQualified))
	#(escapeId #(value))
	#(format #(sql values stringifyObjects timeZone))
	#(format #(sql values stringifyObjects))
	#(format #(sql values))
)!

! MySQL methodsFor: #accessing !
types
	" Returns the pool of SQL types. "

	^PoolDictionary @ (self handle basicAt: #Types)! !

NodeEventEmitter
	subclass: #Connection
	category: #MySQL !

Connection buildFunctions: #(
	"#(createQuery #(_sql values callback) Query)"
	#(connect #(_options callback))
	#(connect #(callback))
	#(changeUser #(_options callback))
	#(changeUser #(callback))
	#(beginTransaction #(_options callback) Query)
	#(beginTransaction #(callback) Query)
	#(commit #(_options callback) Query)
	#(commit #(callback) Query)
	#(rollback #(_options callback) Query)
	#(rollback #(callback) Query)
	#(query #(_sql values callback) Query)
	#(ping #(_options callback) Query)
	#(ping #(callback) Query)
	#(statistics #(_options callback) Query)
	#(statistics #(callback) Query)
	#(end #(_options callback) Query)
	#(end #(callback) Query)
	destroy pause resume
	#(escape #(value))
	#(escapeId #(value))
	#(format #(_sql values))
)!
Connection buildAccessors: #(
	state
)!

NativeObject
	subclass: #ConnectionConfig
	category: #MySQL !

ConnectionConfig buildAccessors: #(
	host port
	localAddress
	socketPath
	user password
	database
	connectTimeout
	insecureAuth
	supportBigNumbers
	bigNumberStrings
	dateStrings
	debug trace
	stringifyObjects
	timezone
	flags
	queryFormat
	pool ssl
	multipleStatements
	typeCast
	clientFlags
)!

NodeEventEmitter
	subclass: #Pool
	category: #MySQL !

Pool buildFunctions: #(
	#(getConnection #(callback))
	#(acquireConnection #(_connection callback))
	#(releaseConnection #(_connection))
	#(end #(callback))
	#(query #(_sql values callback) Query)
)!

NodeEventEmitter
	subclass: #PoolCluster
	category: #MySQL !

PoolCluster buildFunctions: #(
	#(add #(_id _config))
	#(end #(callback))
	#(of #(pattern _selector))
	#(of #(pattern))
	#(remove #(pattern))
	#(getConnection #(pattern _selector callback))
)!

NativeObject
	subclass: #PoolConfig
	category: #MySQL !

PoolConfig buildFunctions: #(
	#(newConnectionConfig ConnectionConfig)
)!

Connection
	subclass: #PoolConnection
	category: #MySQL !

NativeObject
	subclass: #PoolNamespace
	category: #MySQL !

PoolNamespace buildFunctions: #(
	#(getConnection #(callback))
	#(query #(_sql values callback) Query)
)!

NodeEventEmitter
	subclass: #Sequence
	category: #MySQL !

Sequence
	subclass: #Query
	category: #MySQL !

Query buildAccessors: #(
	sql values
)!




References