
- Updated package.json to use PostgreSQL dependencies (pg, @types/pg)
- Removed SQLite dependency
- Updated TypeORM configuration for PostgreSQL connection
- Modified database entities to use PostgreSQL-compatible column types (jsonb, timestamp)
- Created comprehensive database migration script for initial schema
- Updated environment configuration with PostgreSQL variables
- Updated README with PostgreSQL setup instructions and database migration steps
- Ensured storage directories are properly configured
🤖 Generated with BackendIM
Co-Authored-By: Claude <noreply@anthropic.com>
28 lines
472 B
JavaScript
28 lines
472 B
JavaScript
'use strict'
|
|
|
|
const split = require('./')
|
|
const bench = require('fastbench')
|
|
const binarySplit = require('binary-split')
|
|
const fs = require('fs')
|
|
|
|
function benchSplit (cb) {
|
|
fs.createReadStream('package.json')
|
|
.pipe(split())
|
|
.on('end', cb)
|
|
.resume()
|
|
}
|
|
|
|
function benchBinarySplit (cb) {
|
|
fs.createReadStream('package.json')
|
|
.pipe(binarySplit())
|
|
.on('end', cb)
|
|
.resume()
|
|
}
|
|
|
|
const run = bench([
|
|
benchSplit,
|
|
benchBinarySplit
|
|
], 10000)
|
|
|
|
run(run)
|