有没有办法从mysqldump命令限制某些表?
例如,我使用以下语法只转储table1和table2:
mysqldump -u username -p database table1 table2 > database.sql
Run Code Online (Sandbox Code Playgroud)
但是有没有类似的方法来转储除 table1和table2 之外的所有表?我还没有在mysqldump文档中找到任何内容,那么brute-force(指定所有表名)是唯一的方法吗?
我正在使用D3.js从GeoJSON文件生成并呈现路径.这工作正常,但现在我想沿着那条路径动画一个物体.我知道如何使用D3和标准SVG来做到这一点:
这很简单.但我遇到的问题是d3.geo.path()似乎没有像标准D3路径对象那样返回任何长度或位置数据(例如有用的getPointAtLength()方法).所以我无法在路径上找到一个点的x,y坐标,比如25%.
有没有办法获得这些数据?(或者有更好的方法,例如将d3.geo.path()转换为常规D3路径吗?)
下面是我的代码的截断版本; 一个现实的例子在这里:http://jsfiddle.net/5m35J/4/
json = {
... // snipped for brevity
};
// Draw a GeoJSON line on the map:
map = $('#map');
xy = d3.geo.mercator().scale(480000).translate([630700, 401100]);
path = d3.geo.path().projection(xy);
vis = d3.select("#map")
.append("svg:svg")
.attr("width", 960)
.attr("height", 600);
vis.append("svg:g")
.attr("class", "route")
.selectAll("path")
.data(json.features)
.enter()
.append("svg:path")
.attr("d", path)
.attr("fill-opacity", 0.5)
.attr("fill", "#fff")
.attr("stroke", "#333");
// Draw a red circle on the map:
//len = 100; // how do I find the length of …Run Code Online (Sandbox Code Playgroud)