{"action":"created","issue":{"url":"https://api.github.com/repos/VeliovGroup/ostrio-neo4jdriver/issues/2","labels_url":"https://api.github.com/repos/VeliovGroup/ostrio-neo4jdriver/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/VeliovGroup/ostrio-neo4jdriver/issues/2/comments","events_url":"https://api.github.com/repos/VeliovGroup/ostrio-neo4jdriver/issues/2/events","html_url":"https://github.com/VeliovGroup/ostrio-neo4jdriver/issues/2","id":51179618,"number":2,"title":"OrientDB support?","user":{"login":"wuxianliang","id":2120879,"avatar_url":"https://avatars.githubusercontent.com/u/2120879?v=3","gravatar_id":"","url":"https://api.github.com/users/wuxianliang","html_url":"https://github.com/wuxianliang","followers_url":"https://api.github.com/users/wuxianliang/followers","following_url":"https://api.github.com/users/wuxianliang/following{/other_user}","gists_url":"https://api.github.com/users/wuxianliang/gists{/gist_id}","starred_url":"https://api.github.com/users/wuxianliang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wuxianliang/subscriptions","organizations_url":"https://api.github.com/users/wuxianliang/orgs","repos_url":"https://api.github.com/users/wuxianliang/repos","events_url":"https://api.github.com/users/wuxianliang/events{/privacy}","received_events_url":"https://api.github.com/users/wuxianliang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2014-12-06T11:26:56Z","updated_at":"2015-02-23T17:34:09Z","closed_at":null,"body":"Dear @dr-dimitru \r\nAfter reading the code, I have a question Neo4j and OrientDB which is better for integration with Meteor?\r\nPersonally I prefer OrientDB. So because you have experience in this kind of integration, would you like to take a look at https://github.com/codemix/oriento, OrientDB driver, is it possible that just following your way to write a OrientDB's integration? Thank you very much."},"comment":{"url":"https://api.github.com/repos/VeliovGroup/ostrio-neo4jdriver/issues/comments/75590489","html_url":"https://github.com/VeliovGroup/ostrio-neo4jdriver/issues/2#issuecomment-75590489","issue_url":"https://api.github.com/repos/VeliovGroup/ostrio-neo4jdriver/issues/2","id":75590489,"user":{"login":"wuxianliang","id":2120879,"avatar_url":"https://avatars.githubusercontent.com/u/2120879?v=3","gravatar_id":"","url":"https://api.github.com/users/wuxianliang","html_url":"https://github.com/wuxianliang","followers_url":"https://api.github.com/users/wuxianliang/followers","following_url":"https://api.github.com/users/wuxianliang/following{/other_user}","gists_url":"https://api.github.com/users/wuxianliang/gists{/gist_id}","starred_url":"https://api.github.com/users/wuxianliang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wuxianliang/subscriptions","organizations_url":"https://api.github.com/users/wuxianliang/orgs","repos_url":"https://api.github.com/users/wuxianliang/repos","events_url":"https://api.github.com/users/wuxianliang/events{/privacy}","received_events_url":"https://api.github.com/users/wuxianliang/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T17:34:09Z","updated_at":"2015-02-23T17:34:09Z","body":"Dear @lvca \r\nI think we need a trigger which is called all the time.\r\nWe need that\r\n1. every class that we create has to hook it.\r\n2. when records in the class is added, updated, or removed, the trigger should return an object back.\r\n3. the object is of the form\r\n```javascript\r\n{\r\n    database : string //the name of database we use\r\n    table : string //the name of class we use, we avoid to use word 'class' in JavaScript\r\n    event : string //'added', 'updated', or 'removed'\r\n    records : [array] //an array of records\r\n}\r\n```\r\n```javascript\r\n\r\nLiveOrientDB.prototype.execute = function(sql, options){\r\n  var self = this;\r\n  //????? trigger send back  what?\r\n  // changes = {\r\n  //    database: string\r\n  //    table   : string\r\n  //    event   : string 'changed', 'added' or 'removed'\r\n  //    records : array of record\r\n  // }\r\n  var changes = self.db.exec(sql, options, this);\r\n\r\n```\r\nHow to code it? \r\n\r\n```sql\r\nCREATE FUNCTION returnChanges \"???;\" LANGUAGE Javascript\r\n\r\nCREATE VERTEX V1 EXTENDS OTriggered\r\nALTER CLASS V1 CUSTOM onAfterUpdate=returnChanges\r\nALTER CLASS V1 CUSTOM onAfterCreate=returnChanges\r\nALTER CLASS V1 CUSTOM onAfterDelete=returnChanges\r\n\r\nCREATE EDGE E1 from #1:1 to #2:1 EXTENDS OTriggered\r\nALTER CLASS E1 CUSTOM onAfterUpdate=returnChanges\r\nALTER CLASS E1 CUSTOM onAfterCreate=returnChanges\r\nALTER CLASS E1 CUSTOM onAfterDelete=returnChanges\r\n```\r\nIf do we have to code all these every time?\r\nI mean if so, I should write it in the usage for other people.\r\n\r\nThank you very much!"}}