Example #1
0
 public static Column CreateColumn(IFluentColumn column)
 {
     return(new Column {
         Name = column.ColumnName,
         Value = column.ColumnValue,
         Timestamp = column.ColumnTimestamp.ToTimestamp()
     });
 }
Example #2
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                columnSize = null;
            }

            base.Dispose(disposing);
        }
Example #3
0
		public IDeleteTableOptions DeleteTable(string name)
		{
			if (string.IsNullOrEmpty(name))
				throw new ArgumentNullException("name");
			_currentTable = "";
			_currentColumn = null;

			_exprs.Add(new DeleteTableExpression(name));

			return this;
		}
        /// <summary>
        /// Adds a Column to be created
        /// </summary>
        /// <param name="name">Column name to be added</param>
        /// <returns>IColumnOptions to restrict chaining</returns>
        public IColumnOptions AddColumn(string name)
        {
            if (string.IsNullOrEmpty(name))
                throw new ArgumentNullException("name");
            if (string.IsNullOrEmpty(_currentTable))
                throw new ArgumentException("missing referenced table");

            IFluentColumn column = new FluentColumn(name);
            _currentColumn = column;

            _exprs.Add(new AddColumnExpression(_currentTable, column));
            return this;
        }
Example #5
0
        public IDeleteTableOptions DeleteTable(string name)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw new ArgumentNullException("name");
            }
            _currentTable  = "";
            _currentColumn = null;

            _exprs.Add(new DeleteTableExpression(name));

            return(this);
        }
Example #6
0
        /// <summary>
        /// Adds a Column to be created
        /// </summary>
        /// <param name="name">Column name to be added</param>
        /// <returns>IColumnOptions to restrict chaining</returns>
        public IColumnOptions AddColumn(string name)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw new ArgumentNullException("name");
            }
            if (string.IsNullOrEmpty(_currentTable))
            {
                throw new ArgumentException("missing referenced table");
            }

            IFluentColumn column = new FluentColumn(name);

            _currentColumn = column;

            _exprs.Add(new AddColumnExpression(_currentTable, column));
            return(this);
        }
 public AddColumnExpression(string toTable, IFluentColumn column)
 {
     _column  = column;
     _toTable = toTable;
 }
 public AddColumnExpression(string toTable, IFluentColumn column)
 {
     _column = column;
     _toTable = toTable;
 }
 public FluentColumnPath(FluentColumnParent parent, IFluentColumn column)
     : this(parent.ColumnFamily, parent.SuperColumn, column)
 {
 }
 public FluentColumnPath(IFluentBaseColumnFamily columnFamily, IFluentSuperColumn superColumn, IFluentColumn column)
     : base(columnFamily, superColumn)
 {
     Column = column;
 }
 public FluentColumnPath(FluentColumnParent parent, IFluentColumn column)
     : this(parent.ColumnFamily, parent.SuperColumn, column)
 {
 }
 public FluentColumnPath(IFluentBaseColumnFamily columnFamily, IFluentSuperColumn superColumn, IFluentColumn column)
     : base(columnFamily, superColumn)
 {
     Column = column;
 }
 public static void InsertColumn <CompareWith>(this CassandraColumnFamily <CompareWith> family, BytesType key, IFluentColumn <CompareWith> column)
     where CompareWith : CassandraType
 {
     InsertColumn <CompareWith>(family, key, column.GetPath());
 }