This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE IF NOT EXISTS "menu" ( | |
| "id" INTEGER NOT NULL unsigned bigint PRIMARY KEY AUTOINCREMENT, | |
| "name" TEXT NOT NULL, | |
| "cn" TEXT NOT NULL | |
| ); | |
| CREATE UNIQUE INDEX "menu.name" ON "menu" ( | |
| "name" | |
| ); | |
| CREATE TABLE IF NOT EXISTS "kind" ( | |
| "id" INTEGER NOT NULL unsigned bigint PRIMARY KEY AUTOINCREMENT, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE IF NOT EXISTS "menu" ( | |
| "id" INTEGER NOT NULL bigserial PRIMARY KEY AUTOINCREMENT, | |
| "name" TEXT NOT NULL, | |
| "cn" TEXT NOT NULL | |
| ); | |
| CREATE UNIQUE INDEX "menu.name" ON "menu" ( | |
| "name" | |
| ); | |
| CREATE TABLE IF NOT EXISTS "kind" ( | |
| "id" INTEGER NOT NULL bigserial PRIMARY KEY AUTOINCREMENT, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE IF NOT EXISTS "shein.menu" ( | |
| "id" bigserial PRIMARY KEY, | |
| "name" TEXT NOT NULL, | |
| "cn" TEXT NOT NULL | |
| ); | |
| CREATE UNIQUE INDEX "menu.name" ON "menu" ( | |
| "name" | |
| ); | |
| CREATE TABLE IF NOT EXISTS "shein.kind" ( | |
| "id" bigserial PRIMARY KEY, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE IF NOT EXISTS "menu" ( | |
| "id" bigserial PRIMARY KEY, | |
| "name" TEXT NOT NULL, | |
| "cn" TEXT NOT NULL | |
| ); | |
| CREATE UNIQUE INDEX "menu.name" ON "menu" ( | |
| "name" | |
| ); | |
| CREATE TABLE IF NOT EXISTS "kind" ( | |
| "id" bigserial PRIMARY KEY, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Knex = require('knex') | |
| {isSet} = require 'lodash' | |
| QueryBuilder = require('knex/lib/query/builder') | |
| _transaction = Knex.Client.prototype.transaction | |
| Knex.Client.prototype.transaction = (container, config)-> | |
| _transaction.call( | |
| @ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Creating livescript compiler | |
| 13524228337 Rickey@XVC回复较慢 : | |
| 芜湖市 104590002853032161 2019-10-11T12:46:43.000Z null 阳澄湖大闸蟹协会大闸蟹4对(公4两母3两) 198 [] | |
| 阳澄湖大闸蟹协会大闸蟹4对(公4两母3两) 198 1 | |
| 武汉市 105013581021121838 2019-10-16T10:26:21.000Z null 香满园美味富强小麦粉2.5kg 面粉,琅琊山精制食用盐500g,老干妈风味豆豉 280g 21.81 [] | |
| 香满园美味富强小麦粉2.5kg 面粉 14.9 1 | |
| 琅琊山精制食用盐500g 0.01 1 | |
| 老干妈风味豆豉 280g 6.9 1 | |
| 武汉市 105013595869121991 2019-10-16T10:26:21.000Z null 琅琊山精制食用盐500g, 0.01 [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env -S node -r ./livescript-transform-implicit-async/register | |
| PG = require("./_db") | |
| CONFIG = require 'config-6du/6du' | |
| CITY = require "./city" | |
| {timestamp, END_DAY} = require(\./day.ls) | |
| NO_PRICE = new Set() | |
| _city_product = (begin)~> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env -S node -r ./livescript-transform-implicit-async/register | |
| PG = require("./_db") | |
| {timestamp, END_DAY} = require(\./day.ls) | |
| sync_city_product = require(\./sync_city_product.ls) | |
| 测试城市 = 666 | |
| li2array = (li)-> | |
| r = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def split(li): | |
| if not li: | |
| return | |
| t = [] | |
| min = li[-1] | |
| for i in reversed(li): | |
| if i < min: | |
| min = i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env -S node -r ./livescript-transform-implicit-async/register | |
| require! <[ | |
| fs | |
| dayjs | |
| axios | |
| ./phone-book.ls | |
| ./db/_knex.ls | |
| ]> |