mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-05 23:23:10 +00:00
remove ColIndex constants and default values for index parameters in id/data/timestampCol
This commit is contained in:
parent
a62fffcb3f
commit
aee7f7b57c
@ -52,10 +52,6 @@ const
|
|||||||
dataColName = "data"
|
dataColName = "data"
|
||||||
timestampColName = "timestamp"
|
timestampColName = "timestamp"
|
||||||
|
|
||||||
idColIndex = 0
|
|
||||||
dataColIndex = 1
|
|
||||||
timestampColIndex = 2
|
|
||||||
|
|
||||||
idColType = "TEXT"
|
idColType = "TEXT"
|
||||||
dataColType = "BLOB"
|
dataColType = "BLOB"
|
||||||
timestampColType = "INTEGER"
|
timestampColType = "INTEGER"
|
||||||
@ -110,7 +106,7 @@ proc checkColMetadata(s: RawStmtPtr, i: int, expectedName: string) =
|
|||||||
|
|
||||||
proc idCol*(
|
proc idCol*(
|
||||||
s: RawStmtPtr,
|
s: RawStmtPtr,
|
||||||
index = idColIndex): BoundIdCol =
|
index: int): BoundIdCol =
|
||||||
|
|
||||||
checkColMetadata(s, index, idColName)
|
checkColMetadata(s, index, idColName)
|
||||||
|
|
||||||
@ -134,7 +130,7 @@ proc idCol*(
|
|||||||
|
|
||||||
proc dataCol*(
|
proc dataCol*(
|
||||||
s: RawStmtPtr,
|
s: RawStmtPtr,
|
||||||
index = dataColIndex): BoundDataCol =
|
index: int): BoundDataCol =
|
||||||
|
|
||||||
checkColMetadata(s, index, dataColName)
|
checkColMetadata(s, index, dataColName)
|
||||||
|
|
||||||
@ -175,7 +171,7 @@ proc dataCol*(
|
|||||||
|
|
||||||
proc timestampCol*(
|
proc timestampCol*(
|
||||||
s: RawStmtPtr,
|
s: RawStmtPtr,
|
||||||
index = timestampColIndex): BoundTimestampCol =
|
index: int): BoundTimestampCol =
|
||||||
|
|
||||||
checkColMetadata(s, index, timestampColName)
|
checkColMetadata(s, index, timestampColName)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user