override SqlQueryExpression Deveel.Data.Sql.Expressions.SqlExpressionSerializers.SqlQueryExpressionSerializer.Deserialize |
( |
BinaryReader |
reader | ) |
|
|
inline |
Definition at line 298 of file SqlExpressionSerializers.cs.
301 var queryExp =
new SqlQueryExpression(selectColumns);
303 var isDistinct = reader.ReadByte() == 1;
304 queryExp.Distinct = isDistinct;
306 var hasFrom = reader.ReadByte() == 1;
308 queryExp.FromClause = FromClause.Deserialize(reader);
311 var hasWhere = reader.ReadByte() == 1;
313 queryExp.WhereExpression = SqlExpression.Deserialize(reader);
315 var hasGroupMax = reader.ReadByte() == 1;
317 queryExp.GroupMax = ObjectName.Deserialize(reader);
319 var hasHaving = reader.ReadByte() == 1;
321 queryExp.HavingExpression = SqlExpression.Deserialize(reader);
IEnumerable< SelectColumn > DeserializeSelectColumns(BinaryReader reader)
IEnumerable<SelectColumn> Deveel.Data.Sql.Expressions.SqlExpressionSerializers.SqlQueryExpressionSerializer.DeserializeSelectColumns |
( |
BinaryReader |
reader | ) |
|
|
inlineprivate |
Definition at line 326 of file SqlExpressionSerializers.cs.
327 var count = reader.ReadInt32();
328 var columns =
new SelectColumn[count];
329 for (
int i = 0; i < count; i++) {
330 columns[i] = SelectColumn.Deserialize(reader);
override void Deveel.Data.Sql.Expressions.SqlExpressionSerializers.SqlQueryExpressionSerializer.Serialize |
( |
SqlQueryExpression |
expression, |
|
|
BinaryWriter |
writer |
|
) |
| |
|
inline |
Definition at line 249 of file SqlExpressionSerializers.cs.
252 writer.Write(expression.Distinct ? (byte)1 : (byte)0);
254 if (expression.FromClause != null) {
255 writer.Write((byte) 1);
256 FromClause.Serialize(expression.FromClause, writer);
258 writer.Write((byte)0);
261 if (expression.WhereExpression != null) {
262 writer.Write((byte) 1);
263 SqlExpression.Serialize(expression.WhereExpression, writer);
265 writer.Write((byte)0);
268 if (expression.GroupBy != null) {
269 throw new NotImplementedException();
272 if (expression.GroupMax != null) {
273 writer.Write((byte) 1);
274 ObjectName.Serialize(expression.GroupMax, writer);
276 writer.Write((byte)0);
279 if (expression.HavingExpression != null) {
280 writer.Write((byte) 1);
281 SqlExpression.Serialize(expression.HavingExpression, writer);
283 writer.Write((byte)0);
void SerializeSelectColumns(IEnumerable< SelectColumn > selectColumns, BinaryWriter writer)
void Deveel.Data.Sql.Expressions.SqlExpressionSerializers.SqlQueryExpressionSerializer.SerializeSelectColumns |
( |
IEnumerable< SelectColumn > |
selectColumns, |
|
|
BinaryWriter |
writer |
|
) |
| |
|
inlineprivate |
Definition at line 289 of file SqlExpressionSerializers.cs.
290 var list = selectColumns == null ?
new List<SelectColumn>() : selectColumns.ToList();
291 writer.Write(list.Count);
292 for (
int i = 0; i < list.Count; i++) {
293 var column = list[i];
294 SelectColumn.Serialize(column, writer);
The documentation for this class was generated from the following file: