1602 / 1602/compound

database adapters not working

オープン
#585 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
1.6k
フォーク
179
PR マージ指標
30日以内にマージされた PR はありません

説明

Hey i just started to play around with compound and its ORM, but... the database choices seem to be failing for me. I prefer the coffeescript, _but tried with plain JS, too._

The workflow is basically the same across all my attempts, and i am using osx 10.9 mavericks:

`compound init noir-eso --coffee -css less --db [one of below]`
`cd noir-eso`
`npm install`
`compound g crud race name image text markdown`
`compound db create`
`compound db migrate`
`compound s`
--> go to /races and try adding a new record

**sqlite3**: automigrate/autocreate just doesn't work. Changed database settings to a concrete file, and my inspection tool shows that there is no table created.

**mysql**: the "mysql is not installed" error seen in another ticket here. none of the solutions help.

**nano**:

```
[...]/noir-eso/node_modules/jugglingdb-nano/lib/nano.js:23
return db.insert(design, '_design/nano', function(err, doc) {
^
TypeError: Object # has no method 'insert'
```

**firebird**: `[Error: ENOENT, no such file or directory '/usr/local/lib/node_modules/compound/templates/config/database_firebird.coffee']`

redis isn't suitable for my planned project, mongoDB seems to work, but isn't really suitable, too.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

The issue reports failures with multiple database adapters (sqlite3, mysql, nano, firebird) in the Compound ORM. Start by checking the database configuration templates in /usr/local/lib/node_modules/compound/templates/config/ and the adapter implementations in node_modules/jugglingdb-* directories. Look for missing methods like 'insert' in nano.js and test the automigrate flow. The goal is to identify why table creation fails and adapters throw errors.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
coffeescript, javascript, mongodb, mysql, redis, sqlite
領域
backend, databases
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。