Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Data Source #11

Open
ondrej-bouda opened this issue Sep 27, 2017 · 0 comments
Open

Implement Data Source #11

ondrej-bouda opened this issue Sep 27, 2017 · 0 comments

Comments

@ondrej-bouda
Copy link
Owner

ondrej-bouda commented Sep 27, 2017

  • Introduce DataSource - an IRelationDefinition paired with a database connection, ready to be executed.
  • Useful for a higher level of the application.
  • Both having explicit methods like execute() or query(), and directly iterable, executing the query in the background.
  • Occurrences:
    • IStatementExecution::dataSource() + implementations
    • IRelationDefinition::toDataSource(IConnection)
    • DataSource::fromRelationDefinition(IRelationDefinition, IConnection)
  • Consider specifying a smaller part of IConnection to be held by the data source, just the necessary methods for a relation definition to be executable.
  • Also consider an analogy for Command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant