Table of Contents

TXDataServerModule.Create Constructor

Overloads

TXDataServerModule.Create(string)

Creates a module for the default model, with no connection pool.

Remarks

Without a connection pool the module cannot reach a database, so this constructor suits an API made only of service operations that manage their own data access.

Syntax

Unit: XData.Server.Module

constructor TXDataServerModule.Create(const ABaseUrl: string);

Parameters

<-> Parameter Type Description
const ABaseUrl string The base URL the module responds at.

See also

TXDataServerModule.Create(string, TXDataAureliusModel)

Creates a module for a specific model, with no connection pool.

Syntax

Unit: XData.Server.Module

constructor TXDataServerModule.Create(const ABaseUrl: string; AModel: TXDataAureliusModel);

Parameters

<-> Parameter Type Description
const ABaseUrl string The base URL the module responds at.
AModel TXDataAureliusModel The model to publish. When nil, the default model is used.

See also

TXDataServerModule.Create(string, IDBConnection)

Creates a module for the default model, served by a single database connection.

Remarks

The module wraps the connection in a pool of a single connection, so all requests share it. Use a real connection pool instead when the server has to handle concurrent requests.

Syntax

Unit: XData.Server.Module

constructor TXDataServerModule.Create(const ABaseUrl: string; AConnection: IDBConnection);

Parameters

<-> Parameter Type Description
const ABaseUrl string The base URL the module responds at.
AConnection IDBConnection The connection used to reach the database.

See also

TXDataServerModule.Create(string, IDBConnectionPool)

Creates a module for the default model, served by a connection pool.

Syntax

Unit: XData.Server.Module

constructor TXDataServerModule.Create(const ABaseUrl: string; AConnectionPool: IDBConnectionPool);

Parameters

<-> Parameter Type Description
const ABaseUrl string The base URL the module responds at.
AConnectionPool IDBConnectionPool The pool the module acquires a connection from for each request.

See also

TXDataServerModule.Create(string, IDBConnection, TXDataAureliusModel)

Creates a module for a specific model, served by a single database connection.

Remarks

The module wraps the connection in a pool of a single connection, so all requests share it. Use a real connection pool instead when the server has to handle concurrent requests.

Syntax

Unit: XData.Server.Module

constructor TXDataServerModule.Create(const ABaseUrl: string; AConnection: IDBConnection; AModel: TXDataAureliusModel);

Parameters

<-> Parameter Type Description
const ABaseUrl string The base URL the module responds at.
AConnection IDBConnection The connection used to reach the database.
AModel TXDataAureliusModel The model to publish. When nil, the default model is used.

See also

TXDataServerModule.Create(string, IDBConnectionPool, TXDataAureliusModel)

Creates a module for a specific model, served by a connection pool.

Syntax

Unit: XData.Server.Module

constructor TXDataServerModule.Create(const ABaseUrl: string; AConnectionPool: IDBConnectionPool; AModel: TXDataAureliusModel);

Parameters

<-> Parameter Type Description
const ABaseUrl string The base URL the module responds at.
AConnectionPool IDBConnectionPool The pool the module acquires a connection from for each request.
AModel TXDataAureliusModel The model to publish. When nil, the default model is used.

See also