Giter Club home page Giter Club logo

cynthia's People

Contributors

dspinellis avatar stefanoschaliasos avatar theosotr avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

wcphkust

cynthia's Issues

Systematically test the ActiveRecord Translator

Currently, the activerecord translator produces incorrect ORM queries when translating complex AQL queries, something that prevents us from testing activerecord.

We have to systematically test this translator through the test command on different backends, identify and fix the issues.

Possible ORM candidates

Generate well-typed AQL expressions

Currently, we generate arbitrary expressions without checking the types of sub-expressions. The postgres SQL dialect is typed, so many of the generated AQL queries are doomed to fail (e.g., for example when mixing char fields with interger fields).

We should add a CLI option (e.g., --well-typed) to generate well-typed AQL expressions.

Run and Replay commands override existing results

When I run replay on a specific schema, and mismatch, it overrides existing mismatches.

For example, when I run:

cynthia replay --orms peewee,django -s Schema --mismatches 3

it produces results inside .cynthia/report/Schema/mismatches/1 rather than .cynthia/report/Schema/mismatches/3.

For run mode, cynthia should get the next available ID for assigning to the given query.

New AQL features

  • INSERT, UPDATE, and DELETE queries
  • distinct records
  • many-to-many relationships
  • one-to-one relationships
  • NULL values
  • Array values
  • Datetime values
  • More predicate operators. Some examples
    • startswith
    • endswith
    • in
    • is
    • between
    • ... more

Clean command must also clean the MySQL and Postgres databases

The clean command must remove all existing databases from MySQL and Postgres (except for the system databases).

For example when I run show databases on MySQL.

+--------------------+
| Database           |
+--------------------+
| information_schema |
| Acclaimed          |
| Agism              |
| Airlifts           |
| Alexander          |
| Alkalis            |
| Amidst             |
| Annotates          |
| Apes               |
| Applaud            |
| Appraised          |
| Aqueduct           |
| Asoka              |
| Asperger           |
| Barreling          |
| Bawling            |
| Blaming            |
| Bloodbath          |
| Bouffant           |
| Bragged            |
| Brinks             |
| Bummer             |
| Bumpiest           |
| Burbling           |
| Cablecast          |
| Calamity           |
| Cane               |
| Carapace           |
| Carrier            |
| Catalysis          |
| Chirico            |
| Choppers           |
| Clinical           |
| Clothed            |
| Coachmen           |
| Cohesion           |
| Colors             |
| Condoes            |
| Contrives          |
| Corduroys          |
| Coverall           |
| Curtseys           |
| Cypriot            |
| Damage             |
| Darning            |
| Deeming            |
| Definable          |
| Deviance           |
| Diabetics          |
| Difficult          |
| Dilution           |
| Dishwater          |
| Dismaying          |
| Doubter            |
| Dreams             |
| Driver             |
| Drunkard           |
| Duelists           |
| Dusk               |
| Elena              |
| Enact              |
| Enlivens           |
| Ensnares           |
| Epicurus           |
| Erick              |
| Erupts             |
| Evens              |
| Exam               |
| Exchequer          |
| Expedient          |
| Expedites          |
| Expel              |
| Expensive          |
| Facials            |
| Fanatic            |
| Felicity           |
| Festive            |
| Fireworks          |
| Fisherman          |
| Fringe             |
| Frumpiest          |
| Fuchsias           |
| Funnily            |
| Furiously          |
| Gable              |
| Galilean           |
| Gates              |
| Ghettoes           |
| Ginseng            |
| Girded             |
| Glad               |
| Glitch             |
| Glottis            |
| Godot              |
| Goobers            |
| Gore               |
| Grazing            |
| Grille             |
| Grungier           |
| Gyp                |
| Hallmarks          |
| Handouts           |
| Harrowing          |
| Hoffman            |
| Homonym            |
| Humberto           |
| Ice                |
| Immensely          |
| Impeding           |
| Implants           |
| Insisted           |
| Isinglass          |
| Jauntier           |
| Jeweled            |
| Jilt               |
| Knifed             |
| Lanka              |
| Larcenous          |
| Lattice            |
| Laymen             |
| Legalese           |
| Lenard             |
| Liege              |
| Lindy              |
| Linnet             |
| Liquifies          |
| Lists              |
| Looping            |
| Lopes              |
| Loving             |
| Methought          |
| Midday             |
| Mixed              |
| Moniker            |
| Mortise            |
| Nebraskan          |
| Nicknamed          |
| Nocturne           |
| Nominees           |
| Novelle            |
| Now                |
| Nuanced            |
| Nurses             |
| Nuzzle             |
| Opponents          |
| Originate          |
| Outlast            |
| Overdraws          |
| Palmists           |
| Panacea            |
| Panniers           |
| Pat                |
| Pearliest          |
| Peritonea          |
| Pertness           |
| Perverted          |
| Pettiest           |
| Pillaging          |
| Pitchfork          |
| Pits               |
| Pneumatic          |
| Potted             |
| Prattles           |
| Prayed             |
| Precious           |
| Present            |
| Proteus            |
| Pulpy              |
| Putnam             |
| Rainbow            |
| Raised             |
| Reachable          |
| Reinforce          |
| Rejoining          |
| Rhodes             |
| Ricardo            |
| Riley              |
| Robotics           |
| Ronstadt           |
| Rushes             |
| Saner              |
| Savvy              |
| Scaffold           |
| Scalene            |
| Scrip              |
| Selves             |
| Sentiment          |
| Sepal              |
| Seventies          |
| Sexton             |
| Sharpest           |
| Showbiz            |
| Siestas            |
| Sightread          |
| Simulate           |
| Skewing            |
| Skitter            |
| Skittish           |
| Smokiness          |
| Solecism           |
| Sparklers          |
| Spelt              |
| Sporting           |
| Storybook          |
| Strainer           |
| Strays             |
| Succeed            |
| Suffuses           |
| Sundries           |
| Tabooing           |
| Target             |
| Titter             |
| Tom                |
| Twisted            |
| Unbinds            |
| Unhorses           |
| Vela               |
| Velour             |
| Verbals            |
| Visitor            |
| Wanamaker          |
| Wang               |
| Weekended          |
| Winnowing          |
| Woodcuts           |
| Zilch              |
| book               |
| books              |
| erp_progIITest     |
| listing            |
| mysql              |
| performance_schema |
| proderp            |
| sys                |
+--------------------+
234 rows in set (0.05 sec)

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.