mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-03 22: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"
|
||||
timestampColName = "timestamp"
|
||||
|
||||
idColIndex = 0
|
||||
dataColIndex = 1
|
||||
timestampColIndex = 2
|
||||
|
||||
idColType = "TEXT"
|
||||
dataColType = "BLOB"
|
||||
timestampColType = "INTEGER"
|
||||
@ -110,7 +106,7 @@ proc checkColMetadata(s: RawStmtPtr, i: int, expectedName: string) =
|
||||
|
||||
proc idCol*(
|
||||
s: RawStmtPtr,
|
||||
index = idColIndex): BoundIdCol =
|
||||
index: int): BoundIdCol =
|
||||
|
||||
checkColMetadata(s, index, idColName)
|
||||
|
||||
@ -134,7 +130,7 @@ proc idCol*(
|
||||
|
||||
proc dataCol*(
|
||||
s: RawStmtPtr,
|
||||
index = dataColIndex): BoundDataCol =
|
||||
index: int): BoundDataCol =
|
||||
|
||||
checkColMetadata(s, index, dataColName)
|
||||
|
||||
@ -175,7 +171,7 @@ proc dataCol*(
|
||||
|
||||
proc timestampCol*(
|
||||
s: RawStmtPtr,
|
||||
index = timestampColIndex): BoundTimestampCol =
|
||||
index: int): BoundTimestampCol =
|
||||
|
||||
checkColMetadata(s, index, timestampColName)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user