orientechnologies / orientjs

The official fast, lightweight node.js client for OrientDB
http://orientdb.com
Other
326 stars 67 forks source link

In memory document database class not working #119

Open anwar007 opened 8 years ago

anwar007 commented 8 years ago

Hi

I am unable to insert any records when I create an in-memory database and class using the driver.

    server.create({
        name: 'MyDBName',
        type: 'document',
        storage: 'memory'
    }).then(function (db) {
        console.log('Db ' + db.name + ' created.');

        session = server.use({
            name: 'MyDBName',
            username: '****',
            password: '****'
        });

        return session.class.create('session');
    }).then(function (clazz) {
        console.log('Db Class ' + clazz.name + ' created.');
    }).done();

The code above creates the database and class, but cannot do any CRUD operations on it. I am using the Community version 2.0.6 on a Windows 8.1 laptop.

Thanks Anwar

wolf4ood commented 8 years ago

hi @anwar007

which error do you get ?