Skip to content

Document database interceptors with examples #1543

Closed

Description

@jalakhras

We are implementing a solution to query a temporal of any table.

As you know, when enabling a temporal table on SQL server for any table, SQL will automatically add a second table with extra “_History” at the end of the table to track history. For example, if we have a “student” table, SQL server will add “student_History” table.

To query the student history, all that we need is querying student table and add “FOR SYSTEM_TIME AS OF '2015-09-01 T10:00:00.7230011';” at the end of the statement. So instead of write:

Select * from student

We will write: Select * from student FOR SYSTEM_TIME AS OF '2015-09-01 T10:00:00.7230011'

Is there any way to automatically append this statement at the end of the query?

It is like intercepting the query and applying query filter like a soft table, but now it is not filtered, it is just statement at the end of the statement.

Activity

  1. changed the title [-]Querying Data in a System-Versioned Temporal Table[/-] [+]Document database interceptors with examples[/+] on Sep 2, 2019
  2. added this to the Backlog milestone on Sep 2, 2019
  3. modified the milestones: Backlog, 3.1.0 on Sep 6, 2019
  4. self-assigned this
    on Sep 6, 2019
  5. EmpeRoar commented on Sep 25, 2019

    @EmpeRoar

    I am also waiting for this.

  6. modified the milestones: 3.1.0, 5.0.0 on Jan 15, 2020
  7. added 4 commits that reference this issue on Oct 17, 2020
    fcd6ed5
    ecf0d01
    4b194ad
    777e0c0
  8. added a commit that references this issue on Nov 9, 2020
    07365ee
  9. added a commit that references this issue on Nov 10, 2020
    18482b0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions