Comments (5)
只测试了sqlite3,但是实际的效果不好, Sqlite3会锁死数据库,无法并发对其操作。不建议使用
from proxypool.
我的理解是xorm会生成一个.db文件,这个文件记录了数据库创建的全过程。难道ProxyPool.db不是记录数据库创建全过程的文件吗?
印象中的.db文件是这样的:
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; CREATE DATABASE /*!32312 IF NOT EXISTS*/
lottery` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE lottery
;
/*Table structure for table lt_blackip
*/
DROP TABLE IF EXISTS lt_blackip
;
CREATE TABLE lt_blackip
(
id
int(10) unsigned NOT NULL AUTO_INCREMENT,
ip
varchar(50) NOT NULL DEFAULT '' COMMENT 'IP地址',
blacktime
int(10) unsigned NOT NULL DEFAULT '0' COMMENT '黑名单限制到期时间',
sys_created
int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
sys_updated
int(10) unsigned NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (id
),
UNIQUE KEY ip
(ip
)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*Data for the table lt_blackip
*/
insert into lt_blackip
(id
,ip
,blacktime
,sys_created
,sys_updated
) values (1,'127.0.0.1',0,0,1532606350);
/*Table structure for table lt_code
*/
DROP TABLE IF EXISTS lt_code
;`
from proxypool.
你可以创建一个data目录,ProxyPool.db会在运行时生成的。
from proxypool.
谢谢你,虽然我成功运行后没有发现data文件夹出现.db文件,但这已经不重要了,我已经运行起来了。
from proxypool.
Not thanks
from proxypool.
Related Issues (20)
- gomodule模式下报错 HOT 4
- panic: runtime error: invalid memory address or nil pointer dereference HOT 4
- IP重复过滤问题 HOT 2
- mysql 数据表结构呢 HOT 1
- 没有 https 代理. HOT 2
- go get 时候报错 undefined: clog.CONSOLE HOT 3
- 检查数据库中的ip的时候为什么不循环一直去检测,而是只检测一次? HOT 5
- 强烈建议贴出依赖库的版本号~~
- 都用go了,直接把代理功能加上不更好么? HOT 1
- /v2/ip 各种空指针 HOT 2
- Phantomjs用Docker装了可以用么? HOT 2
- http://ip138.com HOT 5
- 程序能运行,但数据库一直没数据 HOT 3
- 数据库没有数据,访问端口也不出来数据 HOT 1
- 一点建议 HOT 1
- 这里有个拼写错误 HOT 1
- bug ?
- Additional Proxy Source
- clog维护不行 建议移除这个依赖
- 博主有联系方式吗?想谈合作~
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proxypool.