Git Product home page Git Product logo

origodb's People

Contributors

gitter-badger avatar patriksvensson avatar rofr avatar waffle-iron avatar yazgoo 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

origodb's Issues

Windows Service port issue

Using Windows 10 operating system.
OrigoDB version 0.2.
No modified configuration files, extracted to hard disk and ran Windows Service install batch file.

Windows batch file created new app config file in the following folder:
C:\Windows\scripts

The contents:

<configuration>
    <appSettings>
        <add key="AdminHost" value="127.0.0.1" />
        <add key="AdminPort" value="8080" />
    </appSettings>
</configuration>

Therefore the Windows Service bound on the port 8080 and not 8088 as specified in the original config file.

Add support for method overloads to Proxy

The ProxyMethodMap class maps method names to methodinfo using a Dictionary<string,MethodInfo>. Overloads will throw while the map is being built.

Proxy writes ProxyCommand objects to the journal containing the name of the method and an array with the arguments. The solution should be backwards compatible with existing journals.

Helper to grab OrigoDB types from an assembly

Create a helper to enumerate all the Origo related types in an assembly. Models, Commands, Queries, EngineConfigurations and custom extensions implementing origo interfaces.

Useful for developer but also supports toolmaking and origodb server features.

Point in time restore

Add Engine.Load overloads which load to a specific point in time based on either Revision or DateTime, or Func<JournalEntry<Command>,bool>. The resulting engine should be in a read only or non-persisting mode.

Create a generic relational model

Users should be able to use the CRUD pattern to store entities objects of any type. Entities that refer to each other should use foreign keys, not references.
Something like:

  var db = Db.For<Relational>();
  db.CreateTable<Product>();
  var product = new Product();
  db.Insert(product);
  product.Name = "Coconuts";
  db.Update(product);
  db.Delete(product);

Some things to discuss:

Identity

Each entity needs to have a unique identity. We could allow a [Key] attribute on one or more fields, look for a field named Id or just let the user implement IComparable on each Entity. We could support all of these or a subset.

Generated keys

User assigned numeric keys is a problem, there is a risk for duplicates. We could just recommend guids but that takes away options from the user. Also guids use more memory than integer types.
If the server generates during INSERT we might need the generated value to set as FK in related entities. These may also have to be in the same transaction.

Constraints

Constraints should probably be on the entity itself, using plain OO. Except unique constraints, we could use indexes for that.

Indexes

Creating indexes would be useful. Something like:
db.Index<Product>("Product.Name", p => p.Name);
We would have to serialize the lambda to make this work with a remote server.

How will origodb server know the user defined entity types?

Running embedded the user can put custom entities in a generic model but remote, the server needs to be able to load the types. One way would be to just add assemblies in the server UI but this kind of defeats the purpose of a generic model in the first place.

Here's an old blog article with some ideas
http://origodb.com/2011/11/24/relational-modeling-and-crud.html
EDIT: Link updated

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.