wafer怎么获得mysql_微信小程序引用SDK(wafer-node-sdk)正确操作数据库

Builder {

client:

Client_MySQL {

config: { client: 'mysql', connection: [Object] },

connectionSettings:

{ host: 'localhost',

port: 3306,

user: 'databaseuser',

password: 'password',

database: 'databasename',

charset: 'utf8mb4' },

driver:

{ createConnection: [Function: createConnection],

createPool: [Function: createPool],

createPoolCluster: [Function: createPoolCluster],

createQuery: [Function: createQuery],

escape: [Function: escape],

escapeId: [Function: escapeId],

format: [Function: format],

raw: [Function: raw] },

__cid: 'client0',

pool:

Pool {

_factory: [Object],

_inUseObjects: [Array],

_draining: false,

_waitingClients: [Object],

_availableObjects: [Array],

_asyncTestObjects: [],

_count: 2,

_removeIdleTimer: [Object],

_removeIdleScheduled: true },

valueForUndefined:

Raw {

client: [Circular],

sql: 'DEFAULT',

bindings: undefined,

_wrappedBefore: undefined,

_wrappedAfter: undefined,

_debug: undefined },

_events:

{ start: [Function],

query: [Function],

'query-error': [Function],

'query-response': [Function] },

_eventsCount: 4,

makeKnex: [Function: makeKnex] },

and: [Circular],

_single: { table: 'test', only: false },

_statements:

[ { grouping: 'columns', value: [Array] },

{ grouping: 'where',

type: 'whereBasic',

column: 'id',

operator: '=',

value: 2,

not: false,

bool: 'and' } ],

_method: 'select',

_debug: undefined,

_joinFlag: 'inner',

_boolFlag: 'and',

_notFlag: false }

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值