Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

Sqlite implementation #28

Closed
Closed

Description

@damianh
No description provided.

Activity

  1. damianh commented on Jul 30, 2016

    @damianh
    MemberAuthor

    Now that the SqlServer implementation is baking out a bit, time to do other storage implementations.

  2. dealproc commented on Nov 20, 2016

    @dealproc
    Contributor

    looking into it. going to have a lot of questions, but will see what i can accomplish. laying out project structures now, then will open the early pull request on this.

  3. dealproc commented on Apr 16, 2020

    @dealproc
    Contributor

    Functionally complete, but needs a massive refactor...
    https://github.com/dealproc/SqlStreamStore/tree/sqlite-2

    Thinking about two new methods (extension methods) off of DbCommand that would do something like:

    var command = default(DbCommand);
    
    // to get the $all stream
    var all = command.AllStream();
    
    // to work with a specific stream
    var stream5 = command.streams("stream-5");
    var meta5 = command.streams("$$stream-5");

    There would be an underlying class for both the $all stream, and the per stream access. As an example:

    public class AllStream {
        DbCommand _command;
        public AllStream(DbCommand command) {
            _command = command;
        }
    
        public long HeadPosition() {
            // sql statements to read head position from store.
            return (long)command.ExecuteScalar();
        }
    }

    My thinking here is that once the stream or the $all stream is captured, all commands/reads/etc can be performed and it'd all be within the command context.

  4. damianh commented on May 18, 2020

    @damianh
    MemberAuthor

    I think we can close this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions