You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Counting entries in a database table is one of the most essential parts. One shouldn't need to duke it out with CBOR just to get a proper count - at least, I think so. So, the solution I'd like to propose is to create a top-level function similiar to Insert and friends, but for Count(db *surrealdb.DB, table models.Table) int.
Is your feature request related to a problem?
Fighting with CBOR for unmarshalling has led me down to this:
Please implement a proper method for counting? :)
Describe the solution
Counting entries in a database table is one of the most essential parts. One shouldn't need to duke it out with CBOR just to get a proper count - at least, I think so. So, the solution I'd like to propose is to create a top-level function similiar to
Insert
and friends, but forCount(db *surrealdb.DB, table models.Table) int
.Alternative methods
Can't really think of one... sorry.
SurrealDB version
2.0.4
Contact Details
[email protected]
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: