teocloud / teo Goto Github PK
View Code? Open in Web Editor NEWSchema-centered next-generation web framework for Rust, Node.js and Python.
Home Page: https://teocloud.io
License: Apache License 2.0
Schema-centered next-generation web framework for Rust, Node.js and Python.
Home Page: https://teocloud.io
License: Apache License 2.0
Add teo run --list
command to list user defined programs onto the terminal.
rust version:1.75.0
when I operate by this guide:
https://teocloud.io/docs/getting-started/beginner-tutorial/write-a-schema-only-app
I use cargo teo serve
to start the project, but it quit quickly, just print log below:
[2024-01-23 08:02:33] sqlite connector connected for main
at "sqlite::memory:"
I change database by postgres, and I get the same result:
[2024-01-23 07:58:23] postgres connector connected for main
at "postgres://postgres:[email protected]:5432/helloteo"
-s, --schema <SCHEMA_FILE> The schema file to load
when I use example from https://teocloud.io/docs/getting-started/beginner-tutorial/write-a-schema-only-app
error:
[2023-12-29 02:09:43] postgres connector connected for `main` at "postgres://postgres:postgres@teo-db:5432/helloteo"
thread 'main' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/teo-0.0.64/src/seeder/seed.rs:643:28:
called `Result::unwrap()` on an `Err` value: : unknown database find error: Error { kind: QueryError(Error { kind: Db, cause: Some(DbError { severity: "ERROR", parsed_severity: Some(Error), code: SqlState(E42601), message: "syntax error at or near \")\"", detail: None, hint: None, position: Some(Original(43)), where_: None, schema: None, table: None, column: None, datatype: None, constraint: None, file: Some("scan.l"), line: Some(1241), routine: Some("scanner_yyerror") }) }), original_code: Some("42601"), original_message: Some("db error: ERROR: syntax error at or near \")\"") }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
teo version:
teo Teo 0.0.64 (Rust 1.74.1) [CLI]
teo-generator-0.2.15/src/entity/generators/rust/gen.rs:120:14:
explicit panic
stack backtrace:
0: 0x101a01b40 - std::backtrace_rs::backtrace::libunwind::trace::hadefa2fe489b32be
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
1: 0x101a01b40 - std::backtrace_rs::backtrace::trace_unsynchronized::h37e8bb3c3fd9c67c
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x101a01b40 - std::sys_common::backtrace::_print_fmt::h4994a90b70e9aaa7
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:68:5
3: 0x101a01b40 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hb478ebbfb46e27ce
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:44:22
4: 0x101a24cc4 - core::fmt::rt::Argument::fmt::hfe2e626e52db21d5
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/fmt/rt.rs:142:9
5: 0x101a24cc4 - core::fmt::write::he4d5fa2daff1f531
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/fmt/mod.rs:1120:17
6: 0x1019fe63c - std::io::Write::write_fmt::hc5a47a68eba63d9f
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/io/mod.rs:1810:15
7: 0x101a01974 - std::sys_common::backtrace::_print::hd47355bf70e1c2da
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:47:5
8: 0x101a01974 - std::sys_common::backtrace::print::h79bd952cc5812e7a
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:34:9
9: 0x101a02f00 - std::panicking::default_hook::{{closure}}::h82301f6222887737
10: 0x101a02c48 - std::panicking::default_hook::h1e49abbb3f1d7dbf
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:292:9
11: 0x101a03348 - std::panicking::rust_panic_with_hook::h1e70c5d905e30e9d
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:779:13
12: 0x101a0323c - std::panicking::begin_panic_handler::{{closure}}::h399e32952efd26a4
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:657:13
13: 0x101a01fc4 - std::sys_common::backtrace::__rust_end_short_backtrace::h2ab87f841a2323e7
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:171:18
14: 0x101a02fc4 - rust_begin_unwind
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:645:5
15: 0x101a75d70 - core::panicking::panic_fmt::h33e40d2a93cab78f
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panicking.rs:72:14
16: 0x101a75ec0 - core::panicking::panic_display::h3147bab0bf654774
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panicking.rs:196:5
17: 0x101a75ec0 - core::panicking::panic_explicit::h8cbc9a9d78eb70c9
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panicking.rs:179:5
18: 0x101a37e58 - teo_generator::entity::generators::rust::gen::fix_path::panic_cold_explicit::he1d2df2942da2968
19: 0x1009d5ff4 - teo_generator::entity::generators::rust::gen::fix_path::h67395fca0319a153
20: 0x1009d968c - <teo_generator::entity::generators::rust::gen::RustModuleTemplate as askama::Template>::render_into::h32dc7173e8be20a0
21: 0x1009d75a4 - teo_generator::entity::generators::rust::gen::RustGenerator::generate_module_file::{{closure}}::ha3fad67817939245
22: 0x1009df690 - teo_generator::entity::generators::rust::gen::RustGenerator::generate_module_for_namespace::{{closure}}::h596ab4a2f954a28b
23: 0x1009e02f0 - <teo_generator::entity::generators::rust::gen::RustGenerator as teo_generator::entity::generator::Generator>::generate_entity_files::{{closure}}::h060a7220c0b2810a
24: 0x10074dc20 - teo_generator::entity::generate::{{closure}}::h254070df42dcdd42
25: 0x10078d16c - tokio::runtime::park::CachedParkThread::block_on::{{closure}}::hfd6702ef6c1e0538
26: 0x10078bb7c - tokio::runtime::park::CachedParkThread::block_on::h83b8fe96e738f193
27: 0x1008074c4 - tokio::runtime::context::runtime::enter_runtime::hce168625ef49dbed
28: 0x100862914 - tokio::runtime::runtime::Runtime::block_on::h9a47f25ac8f88ec6
29: 0x10091badc - cargo_teo::main::h3f6e6c228c0ab3dd
30: 0x1008fe4c4 - std::sys_common::backtrace::__rust_begin_short_backtrace::hedcae39fbf3d0e3a
31: 0x10087dc58 - std::rt::lang_start::{{closure}}::hb16fb0e40d873756
32: 0x1019f7afc - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::hde2a2ae1d756c37f
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/ops/function.rs:284:13
33: 0x1019f7afc - std::panicking::try::do_call::h96b73f4da16ee7c5
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:552:40
34: 0x1019f7afc - std::panicking::try::h2cb0c14c1266f147
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:516:19
35: 0x1019f7afc - std::panic::catch_unwind::hb8cd2580f659030d
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panic.rs:142:14
36: 0x1019f7afc - std::rt::lang_start_internal::{{closure}}::h00f9c2d0117ea0ef
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/rt.rs:148:48
37: 0x1019f7afc - std::panicking::try::do_call::h134dfd8876bcc105
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:552:40
38: 0x1019f7afc - std::panicking::try::h6595e056250d6043
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:516:19
39: 0x1019f7afc - std::panic::catch_unwind::haad85d5172c9b53a
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panic.rs:142:14
40: 0x1019f7afc - std::rt::lang_start_internal::hf4f3eb1e51305b96
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/rt.rs:148:20
41: 0x10091bbdc - _main
how can i use python with teo
Hi, can you support BigQuery?
As a rapid development framework of this kind, I think common authentication and authorization support should be added
in the clickstart guide tye cargo
command is used. I believe it is from Rust, but don't know. Can you tell what is needed to download/install?
Currently only lines of file names are logged. Make it looks great.
I will complete these two.
The current is "TEO Docs", the desired behavior is: "{{ article title }} | TEO Docs"
There is a command in API documentation, which corresponds to a CLI concept
Can I try to implement these two pipelines? I feel that this is similar to the implementation of Ellipsis
.
teo/src/core/pipeline/items/string/transform/ellipsis.rs
Lines 18 to 35 in 3358ea7
enum Sex {
/// @name xxx
MALE
/// @name xxx
FEMALE
}
I have a idea.
Many of our users have databases that have been running for several years.
We are wondering if we could develop a feature similar to teo-generate-scheme-from-db
.
This would not only allow new projects to use teo
without starting from scratch,
but also provide a basic interface for older projects.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.