BaseServerSideTable

A server side table is instantiated only once per marsServer, and they are stored into the 'tables' structure of the marsServer.

The instantiation usually is inside the application code: InstantiateTables!(ctTables)(marsServer, [], [], [], [])

Constructors

this
this(immutable(Table) definition)
Undocumented in source.

Members

Aliases

ClientType
alias ClientType = ClientT
Undocumented in source.

Functions

count
size_t count(Database )
Undocumented in source.
countRowsToDelete
size_t countRowsToDelete()
Undocumented in source.
countRowsToInsert
size_t countRowsToInsert()
Undocumented in source.
countRowsToUpdate
size_t countRowsToUpdate()
Undocumented in source.
createClientSideTable
auto createClientSideTable(string clientid)
Undocumented in source. Be warned that the author may not have intended to support it.
deleteRecord
Bytes deleteRecord(Database , immutable(ubyte)[] , DeleteError , string , string )
Undocumented in source.
index
size_t index()
Undocumented in source.
insertRecord
Bytes[2] insertRecord(Database , immutable(ubyte)[] , InsertError , string , string )
Undocumented in source.
packRows
Bytes packRows(size_t offset, size_t limit)
Undocumented in source.
packRows
Bytes packRows(Database db, size_t offset, size_t limit)
Undocumented in source.
packRowsToDelete
Bytes packRowsToDelete()
Undocumented in source.
packRowsToInsert
Bytes packRowsToInsert()
Undocumented in source.
packRowsToUpdate
Bytes packRowsToUpdate()
Undocumented in source.
selectAsJson
auto selectAsJson(Database db, string sqlSelect, Variant[string] parameters, RequestState state)

execute a sql select statement, and returns a vibe json array with the records as json

unsafeReset
void unsafeReset()
Undocumented in source.
updateRecord
void updateRecord(Database , Bytes , immutable(ubyte)[] , RequestState , string )
Undocumented in source.
wipeClientSideTable
auto wipeClientSideTable(string clientid)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

clientSideTables
ClientSideTable!(ClientT)*[string] clientSideTables;

Every server table has a collection of the linked client side tables. The key element is the identifier of the client, so that the collection can be kept clean when a client connect/disconnects.

definition
Table definition;
Undocumented in source.

Meta