Comments (4)
I believe (setf cl-postgres:*query-log* *standard-output*)
will do it. There's also a macro with-log
which can be used to wrap a code that performs queries (with-log ("path/to/logfile") ...)
from ichiran.
Ah, so I would have to somehow load the code into a Lisp CLI and run the function, am I right? The CLI does not offer a verbose flag or anything similar to log the queries.
from ichiran.
@mainrs Are you planning to share the rust implementation somewhere? I'd love to use it, mainly since it uses sqlite instead of needing postgres.
from ichiran.
At some point, yes. But it is currently a large patchwork and more of a proof of concept. Especially the database conversion from Postgres to Sqlite is super hacky and a lot of manual work. I think porting the parsing logic from LISP to Rust and having some tests to check that the databases actually are the same would be a really good starting point.
from ichiran.
Related Issues (20)
- Katakana proper nouns are being split up HOT 1
- Clarification on seq number meaning HOT 5
- Additional data getting inserted into json results HOT 1
- Paper/Explanation of algorithm used HOT 9
- Support for がい/かい suffix HOT 1
- JSON returned by ichiran/cli HOT 4
- 一箇年 and 堪へる are missing kana_text, causing internal server error HOT 2
- Used postgres version HOT 4
- Minor note about database_name HOT 2
- Include root word information for conjugated words in JSON
- ichiran-cli doesn't work HOT 8
- Support for んだ and んです suffix HOT 1
- ichiran gets 「1週間後 」wrong HOT 1
- Docker entrypoint missing on Windows HOT 1
- `Database error 42P01: relation "kana_text" does not exist` from CLI due to `switch-conn-vars` HOT 2
- Improving expression detection HOT 1
- てもいい / でもいい dropping も out of data HOT 2
- Spliting words functionality HOT 6
- Docker compose issues with pg_restore and running tests/cli HOT 4
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 ichiran.