-
The --datadir CLI flag introduced a file-based database, but it runs into file locking issues at load. Rather than coupling to a specific database technology, it would be better to add custom support …
-
# Environment
Knex version: 0.95.4
Database + version: PG 12.x
OS: Ubuntu 20.04 on WSL2
# Bug
1. Explain what kind of behaviour you are getting and how you think it should do
Using the Kn…
-
PostgreSQL allows DECIMAL/NUMERIC types to be declared without precision and scale parameters. When scale is specified, the number is zero-padded at the right side. This is undesired in most cases.
…
-
# Environment
Knex version: 2.0.0
Postgres+ 12.11:
OS: Windows
# Questions about how to use knex
I am trying to use Knex and inspect the types of the result so for instance
```
const entr…
-
# Feature discussion / request
Very often I saw conditional cases with knex, like:
```js
const query =knex('users').where({first_name: 'Test'});
if (request.has('company_id')) {
query.wh…
-
操作表的常用sql
```sql
drop table table_name # 删除表
delete from table_name # 删除表数据但是保留表结构
show create table table_name # 查看create 语句
desc table_name # 查看表结构
show index from table_name # 查看表…
-
# Environment
Knex version: 0.20.4
Database + version: MariaDB 10.4.10
OS: Knex - Windows 7, DB - docker image 10.4.10+maria~bionic
# Bug
I have 2 migrations.
1st creates a table:
```typ…
-
# Environment
Knex version:0.19.3
Database + version: sqlite3 4.1.0
OS: Ubuntu 18.040.3 LTS
# Bug
1. Explain what kind of behaviour you are getting and how you think it should do
When I ru…
-
Many versions ago this worked without issues (it is part of a process we use every 3 months, however this is a new tool that worked when tested over a year ago now).
I am patching 1000s of records …
-
I'd like to be able to transform the returned data without actually converting the query into a promise.
``` js
function getStuff() { return Promise.resolve('stuff') )
const query = knex
.table('t…
samdj updated
2 years ago