@@ -17,12 +17,12 @@ impl<'a> MyRow<'a> {
1717
1818#[ tokio:: main]
1919async fn main ( ) -> Result < ( ) > {
20- println ! ( "{} Start" , FN_NAME ) ;
20+ println ! ( "{}Start" , FN_NAME ) ;
2121
2222 println ! ( "{}Build client" , FN_NAME ) ;
2323 let client = ProtonClient :: new ( "http://localhost:8123" ) ;
2424
25- println ! ( "{} Create stream if not exists" , FN_NAME ) ;
25+ println ! ( "{}Create stream if not exists" , FN_NAME ) ;
2626 create_stream ( & client)
2727 . await
2828 . expect ( "[main]: Failed to create Stream" ) ;
@@ -39,19 +39,19 @@ async fn main() -> Result<()> {
3939
4040 println ! ( "{}Inserted data: {}" , FN_NAME , count) ;
4141
42- println ! ( "{} Stop" , FN_NAME ) ;
42+ println ! ( "{}Stop" , FN_NAME ) ;
4343 Ok ( ( ) )
4444}
4545
4646pub async fn create_stream ( client : & ProtonClient ) -> Result < ( ) > {
4747 client
48- . execute_query ( "CREATE STREAM IF NOT EXISTS some (no uint32, name string) ORDER BY no" )
48+ . execute_query ( "CREATE STREAM IF NOT EXISTS test_stream (no uint32, name string) ORDER BY no" )
4949 . await
5050}
5151
5252pub async fn insert ( client : & ProtonClient ) -> Result < ( ) > {
5353 let mut insert = client
54- . insert ( "some " )
54+ . insert ( "test_stream " )
5555 . await
5656 . expect ( "[main/insert]: Failed to build inserter for table some" ) ;
5757
@@ -70,7 +70,7 @@ pub async fn insert(client: &ProtonClient) -> Result<()> {
7070pub async fn select_count ( client : & ProtonClient ) -> Result < u64 > {
7171 let count = client
7272 . clone ( )
73- . fetch_one ( "select count() from table(some )" )
73+ . fetch_one ( "select count() from table(test_stream )" )
7474 . await
7575 . expect ( "[main/select_count]: Failed to fetch count()" ) ;
7676
0 commit comments