create table
CREATE TABLE demo.replacemt (
key UInt32,
value UInt32
)
ENGINE = ReplacingMergeTree
ORDER BY key
create table
CREATE TABLE demo.replacemt (
key UInt32,
value UInt32
)
ENGINE = ReplacingMergeTree
ORDER BY key
create database and table
CREATE DATABASE demo
CREATE TABLE demo.summt
(
key UInt32,
value UInt32
)
ENGINE = SummingMergeTree()
select concat(database, '.', table) as table, | |
formatReadableSize(sum(bytes)) as size, | |
sum(rows) as rows, | |
max(modification_time) as latest_modification, | |
sum(bytes) as bytes_size, | |
any(engine) as engine, | |
formatReadableSize(sum(primary_key_bytes_in_memory)) as primary_keys_size | |
from system.parts | |
where active | |
group by database, table |
your docker network occupy the address of shared folder
#!/bin/bash | |
robo3t_path=https://download.robomongo.org/1.1.1/linux/robo3t-1.1.1-linux-x86_64-c93c6b0.tar.gz | |
wget $robo3t_path | |
sudo mv robo3t-*.tar.gz /opt | |
cd /opt | |
sudo tar -xf robo3t-*.tar.gz | |
sudo rm robo3t-1.1.1-linux-x86_64-c93c6b0/lib/libstdc++* | |
sudo ln -s /opt/robo3t-*/bin/robo3t /usr/local/bin/robo3t |
I was trying to install a new package vue-lazy-render
(low star number I know...) to our TaaS front end project.
However, after I run npm install vue-lazy-render
and waiting for several seconds, the package-lock.json
is **CHANGED in many places **
I was wondering why this happens? AFAIK, the package-lock.json
should lock my npm package version and should not change that frequently when I run npm install
docker ps -a | grep "cfb329be3a91" | awk '{ print $1 }' | xargs docker rm`
cfb329be3a91
: the image id
可能的原因
关于windows环境下CRLF line deliminator 的说明
linebreak-style
进行较难的话会报错 message: 'Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)'
).gitattributes
这个文件里面可以控制git在clone代码时对于line deliminator的转换
添加如下规则:*.js text eol=lf