Git Product home page Git Product logo

orientdb-odm's Issues

fix interfaces

currently some classes implementing our interfaces define custom public methods that should stay into the interface

Provide a repository class

The repository class is responsible to expose straightforward methods to find elements in a determined collection.

It encapsulates the manager, in order to do queries and hydrate objects.

close visibility

Commands - and other classes - have lots of public methods (~90%).
We should verify if they are needed as public or not.

bash script to build the test report

In order to generate report files with php codebrowser it is needed to generate a bash script able to use:

  • phpunit
  • phploc
  • phpcpd
  • phpdcd
  • phpmd

to generate log files to analyze with PHP_CodeBrowser.

Integration tests

Currently, the quey builder is a dead object, meaning that it is implemented following OrientDB docs, but as they get frequently outdated, to release a beta version of the QB, a series of integration tests need to be done.

In order to create the tests we need the Graph\Manager class, with some methods like createQuery() and getRaw (no hydration for now).

Test "uncovered" classes

CC is 100%, but some classes are tested through the QueryTest, not their own test.

  • Index/Create
  • Index/Drop
  • References\Find
  • Formatter
  • Property
  • OClass
  • Oclass\Create
  • Oclass\Drop
  • Property\Create
  • Property\Drop
  • Delete

improve PHPDOC

In order to generate a doxygen documentation and publish it on github

Sections to document better are the binding and the query builder.

The token formatter for WHERE is broken

I just noticed this issue while going through the code of Orient, and easily reproduced it with the following snippet:

<?php
$query = new Orient\Query();
$sql = $query->from(array('test'))->where('text = ?', 'ME, AND YOU')->getRaw();
// SELECT FROM test WHERE text = "ME AND YOU"

If you look at the generated SQL code, you will notice that the value specified for text has been altered by removing the comma. The cause is actually pretty easy to spot and these two lines are the obvious culprit, but I'm left wondering if the current implementation of the token formatters is in fact a bit too naive.

fix TODOs

can be found via doxygen or the IDE

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.