discontinuedPackage connect_database has been discontinued.

SafeSelectBuilder class

Constructors

SafeSelectBuilder(TableMetadata metadata)

Properties

hashCode → int
The hash code for this object.
no setterinherited
metadata → TableMetadata
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildPaginated(String tableName, {required String orderBy, int page = 1, int pageSize = 100, int maxLobSize = 4000, bool withNoLock = false}) → Future<Result<String>>
Generates a paginated SELECT (Requires SQL Server 2012+). orderBy is required for pagination.
buildSafely(String tableName, {int maxLobSize = 4000, bool withNoLock = false}) → Future<Result<String>>
Convenience method to generate a complete simple SELECT FROM table.
getSafeColumns(String tableName, {String? alias, int maxLobSize = 4000}) → Future<Result<String>>
Generates a safe column list (with CAST for LOBs), ready to be used in SELECTs. Supports alias for use in JOINs (e.g., "c.Nome, CAST(c.Obs...)").
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

clearCache() → void