mirror of
https://github.com/dbgate/dbgate
synced 2024-11-08 12:47:25 +00:00
17 lines
311 B
JavaScript
17 lines
311 B
JavaScript
const SqlDumper = require('../default/SqlDumper');
|
|
|
|
class MsSqlDumper extends SqlDumper {
|
|
autoIncrement() {
|
|
this.put(' ^identity');
|
|
}
|
|
|
|
putStringValue(value) {
|
|
if (/[^\u0000-\u00ff]/.test(value)) {
|
|
this.putRaw('N');
|
|
}
|
|
super.putStringValue(value);
|
|
}
|
|
}
|
|
|
|
module.exports = MsSqlDumper;
|