mirror of
https://github.com/mariadb-corporation/mariadb-connector-nodejs.git
synced 2025-08-16 14:53:37 +00:00
adding metadata test
This commit is contained in:
@ -224,11 +224,14 @@ connection.query({rowsAsArray:true, sql:'select * from animals'}, (err, res, fie
|
||||
|
||||
### Field metadata
|
||||
properties
|
||||
* `schema`: field schema
|
||||
* `db`: database schema name (alias `schema` exists for compatibilit with mysql2)
|
||||
* `table`: field table alias
|
||||
* `orgTable`: field table
|
||||
* `name`: field alias
|
||||
* `orgName`: field name
|
||||
* `columnLength`: column length
|
||||
* `columnType`: column type (see FieldType)
|
||||
* `decimals`: decimal length (for DECIMAL field type)
|
||||
|
||||
methods
|
||||
* `isUnsigned()`: indicate if field type is unsigned
|
||||
|
Reference in New Issue
Block a user