Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/CassandraClient/Session.swift
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ extension CassandraClient {
let eventLoop = eventLoop ?? self.eventLoopGroup.next()

do {
try statement.setPagingSize(pageSize)
try statement.setPagingSize(Int(pageSize))
} catch {
return eventLoop.makeFailedFuture(error)
}
Expand Down Expand Up @@ -559,7 +559,7 @@ extension CassandraClient.Session {
)
async throws -> CassandraClient.PaginatedRows
{
try statement.setPagingSize(pageSize)
try statement.setPagingSize(Int(pageSize))
return CassandraClient.PaginatedRows(session: self, statement: statement, logger: logger)
}

Expand Down
5 changes: 3 additions & 2 deletions Sources/CassandraClient/Statement.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,9 @@ extension CassandraClient {
return cass_statement_bind_collection(self.rawPointer, index, collection)
}

func setPagingSize(_ pagingSize: Int32) throws {
try checkResult { cass_statement_set_paging_size(self.rawPointer, pagingSize) }
/// Sets the paging size of the returned paginated results.
public func setPagingSize(_ pagingSize: Int) throws {
try checkResult { cass_statement_set_paging_size(self.rawPointer, Int32(clamping: pagingSize)) }
}

/// Sets the starting page of the returned paginated results.
Expand Down
Loading