GithubHelp home page GithubHelp logo

codex's People

Contributors

chuckpreslar avatar jroes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

codex's Issues

Implement and Test SQL function Nodes and Visitors

The following SQL functions need to have nodes proper tests for version 0.2.0 release. The function should be a nary node struct, with members for the expressions, a potential alias, and boolean flag for distinct.

  • AVG
  • COUNT
  • MAX
  • MIN
  • SUM

Tests for Nodes

The following Nodes need to have proper tests for version 0.2.0 release.

  • Equal
  • NotEqual
  • GreaterThan
  • GreaterThanOrEqual
  • LessThan
  • LessThanOrEqual
  • Like
  • Unlike
  • And
  • Or
  • Attribute

Tests for Visitors Methods

The following Visitor Methods need to have proper tests for version 0.2.0 release.

ToSqlVisitor

  • Accept
  • Visit
  • VisitAssignment
  • VisitEqual
  • VisitNotEqual
  • VisitGreaterThan
  • VisitGreaterThanOrEqual
  • VisitLessThan
  • VisitLessThanOrEqual
  • VisitLike
  • VisitUnlike
  • VisitOr
  • VisitAnd
  • VisitRelation
  • VisitAttribute
  • VisitGrouping
  • VisitNot
  • VisitLiteral
  • VisitInnerJoin
  • VisitOuterJoin
  • VisitOn
  • VisitUnqualifiedColumn
  • VisitLimit
  • VisitOffset
  • VisitJoinSource
  • VisitSelectCore
  • VisitSelectStatement
  • VisitValues
  • VisitInsertStatement
  • VisitUpdateStatement
  • VisitDeleteStatement
  • VisitString
  • VisitInteger
  • VisitFloat
  • VisitBool
  • QuoteTableName
  • QuoteColumnName

PostgresVisitor

  • VisitLike
  • VisitUnlike

Add visitor for bytea/BLOB types?

A possible enhancement for inserts & updates.


When passing a Go value of type []byte to codex through Insert() or Set() it returns the error:
No visitor method for <[]uint8>. after calling ToSql()

I know the lib/pq driver for Postgres natively supports passing []bytes as a paramater for columns of type bytea, and I imagine most other databases would support this as a BLOB though I don't know how their Go driver's handle it.

Documentation

The following packages and their members need to have proper documentation for version 0.2.0 release.

  • codex
  • codex/tree/nodes
  • codex/tree/managers

Error installing via steps in README

in ~/gocode
○ → go get -u github.com/chuckpreslar/codex
package github.com/chuckpreslar/codex
    imports codex/tree/nodes: unrecognized import path "codex/tree/nodes"
package github.com/chuckpreslar/codex
    imports codex/tree/visitors: unrecognized import path "codex/tree/visitors"

Tests for Managers

The following Managers need to have proper tests for version 0.2.0 release.

  • SelectManager
  • InsertManager
  • UpdateManager
  • DeleteManager

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.