selectWorkingDiff(
args
: {lix
:Lix
; }):SelectQueryBuilder
<{active_account
:ToKysely
<ActiveAccount
>;active_version
:ToKysely
<LixActiveVersion
>;change
:ChangeView
;directory
:DirectoryDescriptorView
;directory_all
:DirectoryDescriptorAllView
;directory_history
:DirectoryDescriptorHistoryView
;state
:StateView
;state_all
:StateAllView
;state_history
: {change_id
:string
;commit_id
:string
;depth
:number
;entity_id
:string
;file_id
:string
;metadata
:null
|Record
<string
,any
>;plugin_key
:string
;root_commit_id
:string
;schema_key
:string
;schema_version
:string
;snapshot_content
:Record
<string
,any
>; };state_with_tombstones
:StateWithTombstonesView
; } & {key_value
:ToKysely
<EntityStateView
<{key
:string
;value
:unknown
; } & {value
:any
; }>>; } & {key_value_all
:ToKysely
<EntityStateAllView
<{key
:string
;value
:unknown
; } & {value
:any
; }>>; } & {key_value_history
:ToKysely
<EntityStateHistoryView
<{key
:string
;value
:unknown
; } & {value
:any
; }>>; } & {account
:ToKysely
<EntityStateView
<{id
:LixGenerated
<string
>;name
:string
; } &object
>>; } & {account_all
:ToKysely
<EntityStateAllView
<{id
:LixGenerated
<string
>;name
:string
; } &object
>>; } & {account_history
:ToKysely
<EntityStateHistoryView
<{id
:LixGenerated
<string
>;name
:string
; } &object
>>; } & {change_set
:ToKysely
<EntityStateView
<{id
:LixGenerated
<string
>; } &object
>>; } & {change_set_all
:ToKysely
<EntityStateAllView
<{id
:LixGenerated
<string
>; } &object
>>; } & {change_set_history
:ToKysely
<EntityStateHistoryView
<{id
:LixGenerated
<string
>; } &object
>>; } & {change_set_element
:ToKysely
<EntityStateView
<{change_id
:string
;change_set_id
:string
;entity_id
:string
;file_id
:string
;schema_key
:string
; } &object
>>; } & {change_set_element_all
:ToKysely
<EntityStateAllView
<{change_id
:string
;change_set_id
:string
;entity_id
:string
;file_id
:string
;schema_key
:string
; } &object
>>; } & {change_set_element_history
:ToKysely
<EntityStateHistoryView
<{change_id
:string
;change_set_id
:string
;entity_id
:string
;file_id
:string
;schema_key
:string
; } &object
>>; } & {change_set_label
:ToKysely
<EntityStateView
<{change_set_id
:string
;label_id
:string
; } &object
>>; } & {change_set_label_all
:ToKysely
<EntityStateAllView
<{change_set_id
:string
;label_id
:string
; } &object
>>; } & {change_set_label_history
:ToKysely
<EntityStateHistoryView
<{change_set_id
:string
;label_id
:string
; } &object
>>; } & {change_author
:ToKysely
<EntityStateView
<{account_id
:string
;change_id
:string
; } &object
>>; } & {change_author_all
:ToKysely
<EntityStateAllView
<{account_id
:string
;change_id
:string
; } &object
>>; } & {change_author_history
:ToKysely
<EntityStateHistoryView
<{account_id
:string
;change_id
:string
; } &object
>>; } & {file
:ToKysely
<EntityStateView
<{directory_id
:null
|string
;extension
:null
|string
;hidden?
:LixGenerated
<undefined
|boolean
>;id
:LixGenerated
<string
>;metadata?
:null
|Record
<string
,any
>;name
:string
; } & {data
:Uint8Array
;directory_id
:string
& {__lixGenerated?
:true
; };extension
:string
& {__lixGenerated?
:true
; };name
:LixGenerated
<string
>;path
:LixGenerated
<string
>; }>>; } & {file_all
:ToKysely
<EntityStateAllView
<{directory_id
:null
|string
;extension
:null
|string
;hidden?
:LixGenerated
<undefined
|boolean
>;id
:LixGenerated
<string
>;metadata?
:null
|Record
<string
,any
>;name
:string
; } & {data
:Uint8Array
;directory_id
:string
& {__lixGenerated?
:true
; };extension
:string
& {__lixGenerated?
:true
; };name
:LixGenerated
<string
>;path
:LixGenerated
<string
>; }>>; } & {file_history
:ToKysely
<EntityStateHistoryView
<{directory_id
:null
|string
;extension
:null
|string
;hidden?
:LixGenerated
<undefined
|boolean
>;id
:LixGenerated
<string
>;metadata?
:null
|Record
<string
,any
>;name
:string
; } & {data
:Uint8Array
;directory_id
:string
& {__lixGenerated?
:true
; };extension
:string
& {__lixGenerated?
:true
; };name
:LixGenerated
<string
>;path
:LixGenerated
<string
>; }>>; } & {label
:ToKysely
<EntityStateView
<{id
:LixGenerated
<string
>;name
:string
; } &object
>>; } & {label_all
:ToKysely
<EntityStateAllView
<{id
:LixGenerated
<string
>;name
:string
; } &object
>>; } & {label_history
:ToKysely
<EntityStateHistoryView
<{id
:LixGenerated
<string
>;name
:string
; } &object
>>; } & {entity_label
:ToKysely
<EntityStateView
<{entity_id
:string
;file_id
:string
;label_id
:string
;schema_key
:string
; } &object
>>; } & {entity_label_all
:ToKysely
<EntityStateAllView
<{entity_id
:string
;file_id
:string
;label_id
:string
;schema_key
:string
; } &object
>>; } & {entity_label_history
:ToKysely
<EntityStateHistoryView
<{entity_id
:string
;file_id
:string
;label_id
:string
;schema_key
:string
; } &object
>>; } & {entity_conversation
:ToKysely
<EntityStateView
<{conversation_id
:string
;entity_id
:string
;file_id
:string
;schema_key
:string
; } &object
>>; } & {entity_conversation_all
:ToKysely
<EntityStateAllView
<{conversation_id
:string
;entity_id
:string
;file_id
:string
;schema_key
:string
; } &object
>>; } & {entity_conversation_history
:ToKysely
<EntityStateHistoryView
<{conversation_id
:string
;entity_id
:string
;file_id
:string
;schema_key
:string
; } &object
>>; } & {stored_schema
:ToKysely
<EntityStateView
<{key?
:string
& {__lixGenerated?
: ... | ...; };value
:unknown
;version?
:string
& {__lixGenerated?
: ... | ...; }; } & {value
:any
; }>>; } & {stored_schema_all
:ToKysely
<EntityStateAllView
<{key?
:string
& {__lixGenerated?
: ... | ...; };value
:unknown
;version?
:string
& {__lixGenerated?
: ... | ...; }; } & {value
:any
; }>>; } & {stored_schema_history
:ToKysely
<EntityStateHistoryView
<{key?
:string
& {__lixGenerated?
: ... | ...; };value
:unknown
;version?
:string
& {__lixGenerated?
: ... | ...; }; } & {value
:any
; }>>; } & {log
:ToKysely
<EntityStateView
<{id
:LixGenerated
<string
>;key
:string
;level
:string
;message?
:null
|string
;payload
:unknown
; } &object
>>; } & {log_all
:ToKysely
<EntityStateAllView
<{id
:LixGenerated
<string
>;key
:string
;level
:string
;message?
:null
|string
;payload
:unknown
; } &object
>>; } & {log_history
:ToKysely
<EntityStateHistoryView
<{id
:LixGenerated
<string
>;key
:string
;level
:string
;message?
:null
|string
;payload
:unknown
; } &object
>>; } & {conversation
:ToKysely
<EntityStateView
<{id
:LixGenerated
<string
>; } &object
>>; } & {conversation_all
:ToKysely
<EntityStateAllView
<{id
:LixGenerated
<string
>; } &object
>>; } & {conversation_history
:ToKysely
<EntityStateHistoryView
<{id
:LixGenerated
<string
>; } &object
>>; } & {conversation_message
:ToKysely
<EntityStateView
<{body
:unknown
;conversation_id
:string
;id
:LixGenerated
<string
>;parent_id?
:null
|string
; } & {body
: {content
: ({children
: ...;metadata?
: ...;style
: ...;type
: ...;zettel_key
: ...; } | ... & ...)[];type
:"zettel_doc"
; }; }>>; } & {conversation_message_all
:ToKysely
<EntityStateAllView
<{body
:unknown
;conversation_id
:string
;id
:LixGenerated
<string
>;parent_id?
:null
|string
; } & {body
: {content
: ({children
: ...;metadata?
: ...;style
: ...;type
: ...;zettel_key
: ...; } | ... & ...)[];type
:"zettel_doc"
; }; }>>; } & {conversation_message_history
:ToKysely
<EntityStateHistoryView
<{body
:unknown
;conversation_id
:string
;id
:LixGenerated
<string
>;parent_id?
:null
|string
; } & {body
: {content
: ({children
: ...;metadata?
: ...;style
: ...;type
: ...;zettel_key
: ...; } | ... & ...)[];type
:"zettel_doc"
; }; }>>; } & {change_proposal
:ToKysely
<EntityStateView
<{id
:LixGenerated
<string
>;source_version_id
:string
;status
:LixGenerated
<string
>;target_version_id
:string
; } &object
>>; } & {change_proposal_all
:ToKysely
<EntityStateAllView
<{id
:LixGenerated
<string
>;source_version_id
:string
;status
:LixGenerated
<string
>;target_version_id
:string
; } &object
>>; } & {change_proposal_history
:ToKysely
<EntityStateHistoryView
<{id
:LixGenerated
<string
>;source_version_id
:string
;status
:LixGenerated
<string
>;target_version_id
:string
; } &object
>>; } & {version
:ToKysely
<EntityStateView
<{hidden?
:LixGenerated
<undefined
|boolean
>;id
:LixGenerated
<string
>;inherits_from_version_id?
:null
|string
;name
:LixGenerated
<string
>; } & {commit_id
:LixGenerated
<string
>;working_commit_id
:LixGenerated
<string
>; }>>; } & {version_all
:ToKysely
<EntityStateAllView
<{hidden?
:LixGenerated
<undefined
|boolean
>;id
:LixGenerated
<string
>;inherits_from_version_id?
:null
|string
;name
:LixGenerated
<string
>; } & {commit_id
:LixGenerated
<string
>;working_commit_id
:LixGenerated
<string
>; }>>; } & {version_history
:ToKysely
<EntityStateHistoryView
<{hidden?
:LixGenerated
<undefined
|boolean
>;id
:LixGenerated
<string
>;inherits_from_version_id?
:null
|string
;name
:LixGenerated
<string
>; } & {commit_id
:LixGenerated
<string
>;working_commit_id
:LixGenerated
<string
>; }>>; } & {commit
:ToKysely
<EntityStateView
<{author_account_ids?
:null
|string
[];change_ids?
:null
|string
[];change_set_id
:string
;id
:string
;meta_change_ids?
:null
|string
[];parent_commit_ids?
:null
|string
[]; } &object
>>; } & {commit_all
:ToKysely
<EntityStateAllView
<{author_account_ids?
:null
|string
[];change_ids?
:null
|string
[];change_set_id
:string
;id
:string
;meta_change_ids?
:null
|string
[];parent_commit_ids?
:null
|string
[]; } &object
>>; } & {commit_history
:ToKysely
<EntityStateHistoryView
<{author_account_ids?
:null
|string
[];change_ids?
:null
|string
[];change_set_id
:string
;id
:string
;meta_change_ids?
:null
|string
[];parent_commit_ids?
:null
|string
[]; } &object
>>; } & {commit_edge
:ToKysely
<EntityStateView
<{child_id
:string
;parent_id
:string
; } &object
>>; } & {commit_edge_all
:ToKysely
<EntityStateAllView
<{child_id
:string
;parent_id
:string
; } &object
>>; } & {commit_edge_history
:ToKysely
<EntityStateHistoryView
<{child_id
:string
;parent_id
:string
; } &object
>>; } &DiffDB
,"diff"
,DiffRow
>
Parameter | Type |
---|---|
args | { lix : Lix ; } |
args.lix | Lix |
SelectQueryBuilder
<{ active_account
: ToKysely
<ActiveAccount
>; active_version
: ToKysely
<LixActiveVersion
>; change
: ChangeView
; directory
: DirectoryDescriptorView
; directory_all
: DirectoryDescriptorAllView
; directory_history
: DirectoryDescriptorHistoryView
; state
: StateView
; state_all
: StateAllView
; state_history
: { change_id
: string
; commit_id
: string
; depth
: number
; entity_id
: string
; file_id
: string
; metadata
: null
| Record
<string
, any
>; plugin_key
: string
; root_commit_id
: string
; schema_key
: string
; schema_version
: string
; snapshot_content
: Record
<string
, any
>; }; state_with_tombstones
: StateWithTombstonesView
; } & { key_value
: ToKysely
<EntityStateView
<{ key
: string
; value
: unknown
; } & { value
: any
; }>>; } & { key_value_all
: ToKysely
<EntityStateAllView
<{ key
: string
; value
: unknown
; } & { value
: any
; }>>; } & { key_value_history
: ToKysely
<EntityStateHistoryView
<{ key
: string
; value
: unknown
; } & { value
: any
; }>>; } & { account
: ToKysely
<EntityStateView
<{ id
: LixGenerated
<string
>; name
: string
; } & object
>>; } & { account_all
: ToKysely
<EntityStateAllView
<{ id
: LixGenerated
<string
>; name
: string
; } & object
>>; } & { account_history
: ToKysely
<EntityStateHistoryView
<{ id
: LixGenerated
<string
>; name
: string
; } & object
>>; } & { change_set
: ToKysely
<EntityStateView
<{ id
: LixGenerated
<string
>; } & object
>>; } & { change_set_all
: ToKysely
<EntityStateAllView
<{ id
: LixGenerated
<string
>; } & object
>>; } & { change_set_history
: ToKysely
<EntityStateHistoryView
<{ id
: LixGenerated
<string
>; } & object
>>; } & { change_set_element
: ToKysely
<EntityStateView
<{ change_id
: string
; change_set_id
: string
; entity_id
: string
; file_id
: string
; schema_key
: string
; } & object
>>; } & { change_set_element_all
: ToKysely
<EntityStateAllView
<{ change_id
: string
; change_set_id
: string
; entity_id
: string
; file_id
: string
; schema_key
: string
; } & object
>>; } & { change_set_element_history
: ToKysely
<EntityStateHistoryView
<{ change_id
: string
; change_set_id
: string
; entity_id
: string
; file_id
: string
; schema_key
: string
; } & object
>>; } & { change_set_label
: ToKysely
<EntityStateView
<{ change_set_id
: string
; label_id
: string
; } & object
>>; } & { change_set_label_all
: ToKysely
<EntityStateAllView
<{ change_set_id
: string
; label_id
: string
; } & object
>>; } & { change_set_label_history
: ToKysely
<EntityStateHistoryView
<{ change_set_id
: string
; label_id
: string
; } & object
>>; } & { change_author
: ToKysely
<EntityStateView
<{ account_id
: string
; change_id
: string
; } & object
>>; } & { change_author_all
: ToKysely
<EntityStateAllView
<{ account_id
: string
; change_id
: string
; } & object
>>; } & { change_author_history
: ToKysely
<EntityStateHistoryView
<{ account_id
: string
; change_id
: string
; } & object
>>; } & { file
: ToKysely
<EntityStateView
<{ directory_id
: null
| string
; extension
: null
| string
; hidden?
: LixGenerated
<undefined
| boolean
>; id
: LixGenerated
<string
>; metadata?
: null
| Record
<string
, any
>; name
: string
; } & { data
: Uint8Array
; directory_id
: string
& { __lixGenerated?
: true
; }; extension
: string
& { __lixGenerated?
: true
; }; name
: LixGenerated
<string
>; path
: LixGenerated
<string
>; }>>; } & { file_all
: ToKysely
<EntityStateAllView
<{ directory_id
: null
| string
; extension
: null
| string
; hidden?
: LixGenerated
<undefined
| boolean
>; id
: LixGenerated
<string
>; metadata?
: null
| Record
<string
, any
>; name
: string
; } & { data
: Uint8Array
; directory_id
: string
& { __lixGenerated?
: true
; }; extension
: string
& { __lixGenerated?
: true
; }; name
: LixGenerated
<string
>; path
: LixGenerated
<string
>; }>>; } & { file_history
: ToKysely
<EntityStateHistoryView
<{ directory_id
: null
| string
; extension
: null
| string
; hidden?
: LixGenerated
<undefined
| boolean
>; id
: LixGenerated
<string
>; metadata?
: null
| Record
<string
, any
>; name
: string
; } & { data
: Uint8Array
; directory_id
: string
& { __lixGenerated?
: true
; }; extension
: string
& { __lixGenerated?
: true
; }; name
: LixGenerated
<string
>; path
: LixGenerated
<string
>; }>>; } & { label
: ToKysely
<EntityStateView
<{ id
: LixGenerated
<string
>; name
: string
; } & object
>>; } & { label_all
: ToKysely
<EntityStateAllView
<{ id
: LixGenerated
<string
>; name
: string
; } & object
>>; } & { label_history
: ToKysely
<EntityStateHistoryView
<{ id
: LixGenerated
<string
>; name
: string
; } & object
>>; } & { entity_label
: ToKysely
<EntityStateView
<{ entity_id
: string
; file_id
: string
; label_id
: string
; schema_key
: string
; } & object
>>; } & { entity_label_all
: ToKysely
<EntityStateAllView
<{ entity_id
: string
; file_id
: string
; label_id
: string
; schema_key
: string
; } & object
>>; } & { entity_label_history
: ToKysely
<EntityStateHistoryView
<{ entity_id
: string
; file_id
: string
; label_id
: string
; schema_key
: string
; } & object
>>; } & { entity_conversation
: ToKysely
<EntityStateView
<{ conversation_id
: string
; entity_id
: string
; file_id
: string
; schema_key
: string
; } & object
>>; } & { entity_conversation_all
: ToKysely
<EntityStateAllView
<{ conversation_id
: string
; entity_id
: string
; file_id
: string
; schema_key
: string
; } & object
>>; } & { entity_conversation_history
: ToKysely
<EntityStateHistoryView
<{ conversation_id
: string
; entity_id
: string
; file_id
: string
; schema_key
: string
; } & object
>>; } & { stored_schema
: ToKysely
<EntityStateView
<{ key?
: string
& { __lixGenerated?
: ... | ...; }; value
: unknown
; version?
: string
& { __lixGenerated?
: ... | ...; }; } & { value
: any
; }>>; } & { stored_schema_all
: ToKysely
<EntityStateAllView
<{ key?
: string
& { __lixGenerated?
: ... | ...; }; value
: unknown
; version?
: string
& { __lixGenerated?
: ... | ...; }; } & { value
: any
; }>>; } & { stored_schema_history
: ToKysely
<EntityStateHistoryView
<{ key?
: string
& { __lixGenerated?
: ... | ...; }; value
: unknown
; version?
: string
& { __lixGenerated?
: ... | ...; }; } & { value
: any
; }>>; } & { log
: ToKysely
<EntityStateView
<{ id
: LixGenerated
<string
>; key
: string
; level
: string
; message?
: null
| string
; payload
: unknown
; } & object
>>; } & { log_all
: ToKysely
<EntityStateAllView
<{ id
: LixGenerated
<string
>; key
: string
; level
: string
; message?
: null
| string
; payload
: unknown
; } & object
>>; } & { log_history
: ToKysely
<EntityStateHistoryView
<{ id
: LixGenerated
<string
>; key
: string
; level
: string
; message?
: null
| string
; payload
: unknown
; } & object
>>; } & { conversation
: ToKysely
<EntityStateView
<{ id
: LixGenerated
<string
>; } & object
>>; } & { conversation_all
: ToKysely
<EntityStateAllView
<{ id
: LixGenerated
<string
>; } & object
>>; } & { conversation_history
: ToKysely
<EntityStateHistoryView
<{ id
: LixGenerated
<string
>; } & object
>>; } & { conversation_message
: ToKysely
<EntityStateView
<{ body
: unknown
; conversation_id
: string
; id
: LixGenerated
<string
>; parent_id?
: null
| string
; } & { body
: { content
: ({ children
: ...; metadata?
: ...; style
: ...; type
: ...; zettel_key
: ...; } | ... & ...)[]; type
: "zettel_doc"
; }; }>>; } & { conversation_message_all
: ToKysely
<EntityStateAllView
<{ body
: unknown
; conversation_id
: string
; id
: LixGenerated
<string
>; parent_id?
: null
| string
; } & { body
: { content
: ({ children
: ...; metadata?
: ...; style
: ...; type
: ...; zettel_key
: ...; } | ... & ...)[]; type
: "zettel_doc"
; }; }>>; } & { conversation_message_history
: ToKysely
<EntityStateHistoryView
<{ body
: unknown
; conversation_id
: string
; id
: LixGenerated
<string
>; parent_id?
: null
| string
; } & { body
: { content
: ({ children
: ...; metadata?
: ...; style
: ...; type
: ...; zettel_key
: ...; } | ... & ...)[]; type
: "zettel_doc"
; }; }>>; } & { change_proposal
: ToKysely
<EntityStateView
<{ id
: LixGenerated
<string
>; source_version_id
: string
; status
: LixGenerated
<string
>; target_version_id
: string
; } & object
>>; } & { change_proposal_all
: ToKysely
<EntityStateAllView
<{ id
: LixGenerated
<string
>; source_version_id
: string
; status
: LixGenerated
<string
>; target_version_id
: string
; } & object
>>; } & { change_proposal_history
: ToKysely
<EntityStateHistoryView
<{ id
: LixGenerated
<string
>; source_version_id
: string
; status
: LixGenerated
<string
>; target_version_id
: string
; } & object
>>; } & { version
: ToKysely
<EntityStateView
<{ hidden?
: LixGenerated
<undefined
| boolean
>; id
: LixGenerated
<string
>; inherits_from_version_id?
: null
| string
; name
: LixGenerated
<string
>; } & { commit_id
: LixGenerated
<string
>; working_commit_id
: LixGenerated
<string
>; }>>; } & { version_all
: ToKysely
<EntityStateAllView
<{ hidden?
: LixGenerated
<undefined
| boolean
>; id
: LixGenerated
<string
>; inherits_from_version_id?
: null
| string
; name
: LixGenerated
<string
>; } & { commit_id
: LixGenerated
<string
>; working_commit_id
: LixGenerated
<string
>; }>>; } & { version_history
: ToKysely
<EntityStateHistoryView
<{ hidden?
: LixGenerated
<undefined
| boolean
>; id
: LixGenerated
<string
>; inherits_from_version_id?
: null
| string
; name
: LixGenerated
<string
>; } & { commit_id
: LixGenerated
<string
>; working_commit_id
: LixGenerated
<string
>; }>>; } & { commit
: ToKysely
<EntityStateView
<{ author_account_ids?
: null
| string
[]; change_ids?
: null
| string
[]; change_set_id
: string
; id
: string
; meta_change_ids?
: null
| string
[]; parent_commit_ids?
: null
| string
[]; } & object
>>; } & { commit_all
: ToKysely
<EntityStateAllView
<{ author_account_ids?
: null
| string
[]; change_ids?
: null
| string
[]; change_set_id
: string
; id
: string
; meta_change_ids?
: null
| string
[]; parent_commit_ids?
: null
| string
[]; } & object
>>; } & { commit_history
: ToKysely
<EntityStateHistoryView
<{ author_account_ids?
: null
| string
[]; change_ids?
: null
| string
[]; change_set_id
: string
; id
: string
; meta_change_ids?
: null
| string
[]; parent_commit_ids?
: null
| string
[]; } & object
>>; } & { commit_edge
: ToKysely
<EntityStateView
<{ child_id
: string
; parent_id
: string
; } & object
>>; } & { commit_edge_all
: ToKysely
<EntityStateAllView
<{ child_id
: string
; parent_id
: string
; } & object
>>; } & { commit_edge_history
: ToKysely
<EntityStateHistoryView
<{ child_id
: string
; parent_id
: string
; } & object
>>; } & DiffDB
, "diff"
, DiffRow
>