Skip to content

Commit

Permalink
Initial ondo-server
Browse files Browse the repository at this point in the history
commit 1ed193b
Author: Umur Ozkul <[email protected]>
Date:   Fri Mar 10 13:55:41 2023 +0100

    rust 1.68.0

commit 720ff0f
Author: Umur Ozkul <[email protected]>
Date:   Fri Mar 10 13:45:16 2023 +0100

    docker llvm-tools

commit b6014a7
Author: Umur Ozkul <[email protected]>
Date:   Fri Mar 10 13:21:25 2023 +0100

    change target and add protobuf-compiler

commit 1b55610
Author: Umur Ozkul <[email protected]>
Date:   Thu Mar 9 15:19:55 2023 +0100

    version is string

commit e277934
Author: Umur Ozkul <[email protected]>
Date:   Thu Mar 9 15:13:34 2023 +0100

    README setup

commit 0e0eaf5
Author: Umur Ozkul <[email protected]>
Date:   Wed Mar 8 17:58:15 2023 +0100

    remove unused modules

commit fe9bc28
Author: Umur Ozkul <[email protected]>
Date:   Wed Mar 8 17:54:52 2023 +0100

    redirect server calls to traits

commit e2752b8
Author: Umur Ozkul <[email protected]>
Date:   Wed Mar 8 17:04:30 2023 +0100

    todo implementations

commit 59dd82b
Author: Umur Ozkul <[email protected]>
Date:   Wed Mar 8 16:28:04 2023 +0100

    partitioned server traits

commit 2e770c0
Author: Umur Ozkul <[email protected]>
Date:   Wed Mar 8 13:05:21 2023 +0100

    server file skeleton

commit 5cf608e
Author: Umur Ozkul <[email protected]>
Date:   Wed Mar 8 04:03:40 2023 +0100

    comment

commit ed21661
Author: Umur Ozkul <[email protected]>
Date:   Wed Mar 8 04:00:14 2023 +0100

    ondo server api

commit 311f93c
Author: Umur Ozkul <[email protected]>
Date:   Wed Mar 8 01:39:55 2023 +0100

    build script

commit 3db8c87
Author: Umur Ozkul <[email protected]>
Date:   Tue Mar 7 21:23:48 2023 +0100

    ondo server initial messages

commit 97673ea
Author: Umur Ozkul <[email protected]>
Date:   Tue Mar 7 20:57:19 2023 +0100

    initialize database server

commit 4dbda40
Author: Umur Ozkul <[email protected]>
Date:   Tue Mar 7 20:28:13 2023 +0100

    initial client server for ondo

commit a6a1089
Author: Umur Ozkul <[email protected]>
Date:   Tue Mar 7 19:47:49 2023 +0100

    commands

commit bc92704
Author: Umur Ozkul <[email protected]>
Date:   Tue Mar 7 19:30:45 2023 +0100

    cspell dictionary

commit 28e79b6
Author: Umur Ozkul <[email protected]>
Date:   Tue Mar 7 19:11:02 2023 +0100

    hello-client

commit f0e019e
Author: Umur Ozkul <[email protected]>
Date:   Tue Mar 7 19:06:21 2023 +0100

    hello-server

commit 76c2263
Author: Umur Ozkul <[email protected]>
Date:   Tue Mar 7 19:06:07 2023 +0100

    include compiled proto

commit 14fef1b
Author: Umur Ozkul <[email protected]>
Date:   Tue Mar 7 18:53:54 2023 +0100

    build.rs for hello.proto

commit 84b4428
Author: Umur Ozkul <[email protected]>
Date:   Tue Mar 7 18:53:30 2023 +0100

    grpc skeleton complete

commit 2257836
Author: Umur Ozkul <[email protected]>
Date:   Tue Mar 7 18:25:50 2023 +0100

    cargo add tonic-build --build

commit c67629a
Author: Umur Ozkul <[email protected]>
Date:   Tue Mar 7 18:24:52 2023 +0100

    tokio features

commit c49103f
Author: Umur Ozkul <[email protected]>
Date:   Tue Mar 7 18:22:13 2023 +0100

    cargo add tonic

commit 3c692ef
Author: Umur Ozkul <[email protected]>
Date:   Tue Mar 7 18:20:28 2023 +0100

    hello grpc skeleton

commit bf56f65
Author: Umur Ozkul <[email protected]>
Date:   Tue Mar 7 18:13:44 2023 +0100

    cargo add prost

commit 68880e3
Author: Umur Ozkul <[email protected]>
Date:   Tue Mar 7 18:08:43 2023 +0100

    cargo add tokio

commit 3d80b04
Author: Umur Ozkul <[email protected]>
Date:   Tue Mar 7 18:05:36 2023 +0100

    remove main

commit 6a2bbd1
Author: Umur Ozkul <[email protected]>
Date:   Tue Mar 7 16:02:30 2023 +0100

    todo

commit 1fc51ed
Author: Umur Ozkul <[email protected]>
Date:   Tue Mar 7 15:10:54 2023 +0100

    rollback on column value

commit 2960308
Author: Umur Ozkul <[email protected]>
Date:   Wed Mar 1 01:18:35 2023 +0100

    TODO

commit 5e8cdde
Author: Umur Ozkul <[email protected]>
Date:   Wed Mar 1 00:19:24 2023 +0100

    index value reference test requests

commit 257acae
Author: Umur Ozkul <[email protected]>
Date:   Wed Mar 1 00:16:16 2023 +0100

    todo

commit 8b8e90d
Author: Umur Ozkul <[email protected]>
Date:   Wed Mar 1 00:15:12 2023 +0100

    DatabaseServerName

commit 4dfbe24
Author: Umur Ozkul <[email protected]>
Date:   Tue Feb 28 23:58:44 2023 +0100

    DomainName

commit fdaf2c6
Author: Umur Ozkul <[email protected]>
Date:   Tue Feb 28 23:53:54 2023 +0100

    TableName

commit f83e0db
Author: Umur Ozkul <[email protected]>
Date:   Tue Feb 28 23:37:45 2023 +0100

    cfname maker

commit a05324d
Author: Umur Ozkul <[email protected]>
Date:   Tue Feb 28 23:04:31 2023 +0100

    todo

commit 1577c77
Author: Umur Ozkul <[email protected]>
Date:   Tue Feb 28 22:50:26 2023 +0100

    increment column value

commit d155b23
Author: Umur Ozkul <[email protected]>
Date:   Tue Feb 28 21:37:44 2023 +0100

    column value reference

commit 6a26aab
Author: Umur Ozkul <[email protected]>
Date:   Tue Feb 28 21:12:40 2023 +0100

    fixme

commit 7e00a25
Author: Umur Ozkul <[email protected]>
Date:   Tue Feb 28 20:20:51 2023 +0100

    table value

commit 81e25c5
Author: Umur Ozkul <[email protected]>
Date:   Tue Feb 28 20:18:32 2023 +0100

    post table value

commit 4554545
Author: Umur Ozkul <[email protected]>
Date:   Tue Feb 28 19:16:33 2023 +0100

    Upgrade to Rust 1.67.1

commit c43d545
Author: Umur Ozkul <[email protected]>
Date:   Fri Feb 17 23:25:39 2023 +0100

    refactor use statements

commit 14b6f35
Author: Umur Ozkul <[email protected]>
Date:   Fri Feb 17 22:38:39 2023 +0100

    absolute use

commit a8b967b
Author: Umur Ozkul <[email protected]>
Date:   Fri Feb 17 22:20:04 2023 +0100

    fix iter

commit 899df51
Author: Umur Ozkul <[email protected]>
Date:   Fri Feb 17 22:11:11 2023 +0100

    refactor mocks

commit 2e99a7d
Author: Umur Ozkul <[email protected]>
Date:   Fri Feb 17 21:27:53 2023 +0100

    callback iterator

commit 9c24b0a
Author: Umur Ozkul <[email protected]>
Date:   Fri Feb 17 18:15:40 2023 +0100

    todo

commit 55e08b2
Author: Umur Ozkul <[email protected]>
Date:   Thu Feb 16 20:35:24 2023 +0100

    todo

commit e41f9b3
Author: Umur Ozkul <[email protected]>
Date:   Tue Feb 7 22:56:43 2023 +0100

    to do

commit eea94b4
Author: Umur Ozkul <[email protected]>
Date:   Tue Feb 7 22:39:49 2023 +0100

    database server reference cascade delete

commit b2d54bf
Author: Umur Ozkul <[email protected]>
Date:   Tue Feb 7 22:06:08 2023 +0100

    cascade delete domain

commit 293c412
Author: Umur Ozkul <[email protected]>
Date:   Tue Feb 7 20:55:20 2023 +0100

    fix warnings

commit 5dd4064
Author: Umur Ozkul <[email protected]>
Date:   Tue Feb 7 20:53:00 2023 +0100

    refactor test index reference

commit 3fe41a2
Author: Umur Ozkul <[email protected]>
Date:   Tue Feb 7 20:44:38 2023 +0100

    refactor table value test

commit 41c95cd
Author: Umur Ozkul <[email protected]>
Date:   Tue Feb 7 20:42:19 2023 +0100

    refactor test table reference

commit 32b1b62
Author: Umur Ozkul <[email protected]>
Date:   Tue Feb 7 20:23:49 2023 +0100

    refactor test domain reference

commit 85e4d01
Author: Umur Ozkul <[email protected]>
Date:   Tue Feb 7 18:27:05 2023 +0100

    cascade_delete_table_stored

commit 9840e10
Author: Umur Ozkul <[email protected]>
Date:   Tue Feb 7 16:43:03 2023 +0100

    todo

commit 08cb510
Author: Umur Ozkul <[email protected]>
Date:   Mon Feb 6 16:55:41 2023 +0100

    todo

commit f5abb7e
Author: Umur Ozkul <[email protected]>
Date:   Wed Feb 1 14:28:21 2023 +0100

    todo

commit cdc967f
Author: Umur Ozkul <[email protected]>
Date:   Wed Feb 1 14:25:01 2023 +0100

    todo

commit 233e44e
Author: Umur Ozkul <[email protected]>
Date:   Wed Feb 1 14:20:59 2023 +0100

    todo

commit 5cda65c
Author: Umur Ozkul <[email protected]>
Date:   Wed Feb 1 14:20:32 2023 +0100

    default id is _id

commit 9c28a61
Author: Umur Ozkul <[email protected]>
Date:   Wed Feb 1 14:10:19 2023 +0100

    todo

commit da1ba81
Author: Umur Ozkul <[email protected]>
Date:   Wed Feb 1 14:08:05 2023 +0100

    table value reference tested

commit 4be9b2d
Author: Umur Ozkul <[email protected]>
Date:   Wed Feb 1 13:12:28 2023 +0100

    owned

commit bcde53f
Author: Umur Ozkul <[email protected]>
Date:   Wed Feb 1 13:08:54 2023 +0100

    table value reference

commit 8922516
Author: Umur Ozkul <[email protected]>
Date:   Wed Feb 1 11:36:02 2023 +0100

    Replace to_string with to_owned

    to_string is inefficient for string literals

commit 984f4c3
Author: Umur Ozkul <[email protected]>
Date:   Wed Feb 1 11:33:28 2023 +0100

    index value reference tests

commit dd63d36
Author: Umur Ozkul <[email protected]>
Date:   Wed Feb 1 10:49:42 2023 +0100

    disambiguate index key

commit 7d342ea
Author: Umur Ozkul <[email protected]>
Date:   Tue Jan 31 04:01:28 2023 +0100

    index value reference

commit 90be5a8
Author: Umur Ozkul <[email protected]>
Date:   Tue Jan 31 01:54:35 2023 +0100

    index reference tests

commit b4ddacd
Author: Umur Ozkul <[email protected]>
Date:   Tue Jan 31 00:53:52 2023 +0100

    File names as comments

commit 1297b97
Author: Umur Ozkul <[email protected]>
Date:   Tue Jan 31 00:06:14 2023 +0100

    todo

commit 5d67453
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 27 07:39:20 2023 +0100

    test table reference

commit cbd2b21
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 27 07:34:27 2023 +0100

    domain reference

commit 5e30582
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 27 07:21:51 2023 +0100

    todo

commit 5ddbb15
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 27 06:29:53 2023 +0100

    A domain has table counters

commit 3b0837f
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 27 06:24:12 2023 +0100

    test table reference

commit c017929
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 27 06:10:46 2023 +0100

    domain reference spell check

commit 3af2c6a
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 27 06:08:18 2023 +0100

    todo

commit d5945ea
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 27 06:04:21 2023 +0100

    settings

commit 007fd07
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 27 06:04:12 2023 +0100

    table reference

commit 2f3d26b
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 27 06:04:00 2023 +0100

    domain_reference

commit 0e0833a
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 27 06:03:25 2023 +0100

    database_server_reference

commit 5f39608
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 27 04:50:52 2023 +0100

    domain reference

commit f19afa4
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 27 04:39:43 2023 +0100

    todo

commit 34bbeed
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 27 04:39:35 2023 +0100

    domain reference

commit 8d6239b
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 27 04:39:23 2023 +0100

    database server reference

commit 488558c
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 27 04:05:48 2023 +0100

    test domain reference

commit dfea8a6
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 27 03:06:52 2023 +0100

    test domain reference

commit 06a514e
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 27 03:06:41 2023 +0100

    test database server reference

commit 1845e0f
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 27 02:59:31 2023 +0100

    test domain reference

commit 6f19ae9
Author: Umur Ozkul <[email protected]>
Date:   Wed Jan 25 21:32:46 2023 +0100

    domain reference stored tests

commit e4fe685
Author: Umur Ozkul <[email protected]>
Date:   Wed Jan 25 19:47:57 2023 +0100

    domain reference stored

commit a4f31b1
Author: Umur Ozkul <[email protected]>
Date:   Wed Jan 25 18:54:38 2023 +0100

    database server reference

commit dba1ea5
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 20 22:57:00 2023 +0100

    TODO

commit cc41dee
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 20 22:21:24 2023 +0100

    post_table

commit f225486
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 20 22:18:55 2023 +0100

    post_domain

commit a958998
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 20 21:17:08 2023 +0100

    index test only import

commit a99fde9
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 20 21:12:46 2023 +0100

    index reference

commit 70ed9bd
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 20 17:45:04 2023 +0100

    table reference

commit 6f87ecd
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 20 17:44:56 2023 +0100

    domain reference

commit 337213f
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 20 17:39:07 2023 +0100

    table reference

commit b4709ac
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 20 17:38:45 2023 +0100

    domain reference

commit 2e04f23
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 20 17:11:17 2023 +0100

    todo

commit 71879a7
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 20 16:56:23 2023 +0100

    get

commit 5ed50ee
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 20 16:44:30 2023 +0100

    table reference

commit e0e420f
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 20 16:44:18 2023 +0100

    domain reference

commit 8088030
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 20 15:26:14 2023 +0100

    domain reference parent relation

commit a97ee3d
Author: Umur Ozkul <[email protected]>
Date:   Wed Jan 18 20:12:54 2023 +0100

    domain reference parent request

commit 0722523
Author: Umur Ozkul <[email protected]>
Date:   Wed Jan 18 19:46:56 2023 +0100

    table reference

commit 77b67ad
Author: Umur Ozkul <[email protected]>
Date:   Wed Jan 18 19:32:05 2023 +0100

    domain

commit a06daec
Author: Umur Ozkul <[email protected]>
Date:   Wed Jan 18 19:24:31 2023 +0100

    split database server reference

commit 14c9609
Author: Umur Ozkul <[email protected]>
Date:   Wed Jan 18 19:04:59 2023 +0100

    db

commit 397b275
Author: Umur Ozkul <[email protected]>
Date:   Wed Jan 18 19:01:55 2023 +0100

    domain reference

commit 27b0906
Author: Umur Ozkul <[email protected]>
Date:   Wed Jan 18 18:41:32 2023 +0100

    database server reference

commit 43e492a
Author: Umur Ozkul <[email protected]>
Date:   Wed Jan 18 18:32:43 2023 +0100

    effect

commit 2206d97
Author: Umur Ozkul <[email protected]>
Date:   Wed Jan 18 16:45:26 2023 +0100

    API

commit 006c408
Author: Umur Ozkul <[email protected]>
Date:   Thu Jan 12 19:05:01 2023 +0100

    low level effects

commit 5463698
Author: Umur Ozkul <[email protected]>
Date:   Thu Jan 12 18:53:08 2023 +0100

    domains (not tested)

commit 73b59cb
Author: Umur Ozkul <[email protected]>
Date:   Thu Jan 12 18:24:11 2023 +0100

    db error

commit c8a8c15
Author: Umur Ozkul <[email protected]>
Date:   Thu Jan 12 18:17:55 2023 +0100

    databse server reference

commit 0a9f9c4
Author: Umur Ozkul <[email protected]>
Date:   Thu Jan 12 18:15:46 2023 +0100

    database server reference

commit e9c3a47
Author: Umur Ozkul <[email protected]>
Date:   Thu Jan 12 17:29:32 2023 +0100

    Unify list domain names

commit bc3ce5c
Author: Umur Ozkul <[email protected]>
Date:   Wed Jan 11 17:57:59 2023 +0100

    database server reference (tested)

commit c6a2485
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 6 22:26:41 2023 +0100

    test

commit 4d2fb7d
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 6 22:17:55 2023 +0100

    test

commit e5049f4
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 6 22:14:13 2023 +0100

    test

commit fdac914
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 6 22:11:19 2023 +0100

    test

commit 9392148
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 6 22:08:58 2023 +0100

    test

commit cdf9161
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 6 21:55:01 2023 +0100

    post test

commit 728b73b
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 6 21:52:16 2023 +0100

    test put

commit 27a3a25
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 6 21:48:52 2023 +0100

    api

commit 8e9d487
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 6 21:42:05 2023 +0100

    put test

commit 595d380
Author: Umur Ozkul <[email protected]>
Date:   Fri Jan 6 20:02:44 2023 +0100

    Box misunderstanding removed

commit 56cfd6a
Author: Umur Ozkul <[email protected]>
Date:   Sat Dec 31 03:44:31 2022 +0100

    test passed

commit eaf1750
Author: Umur Ozkul <[email protected]>
Date:   Sat Dec 31 03:31:18 2022 +0100

    TODO: FIXME

commit bd56836
Author: Umur Ozkul <[email protected]>
Date:   Sat Dec 31 03:14:36 2022 +0100

    TODO: FIXME

commit 254a874
Author: Umur Ozkul <[email protected]>
Date:   Sat Dec 31 02:53:20 2022 +0100

    TODO: FIX move copy problem

commit aee8fc3
Author: Umur Ozkul <[email protected]>
Date:   Sat Dec 31 02:07:12 2022 +0100

    remove dummy test

commit 5987346
Author: Umur Ozkul <[email protected]>
Date:   Sat Dec 31 02:05:38 2022 +0100

    FIXED mockall usage

commit 7d7a940
Author: Umur Ozkul <[email protected]>
Date:   Sat Dec 31 01:05:44 2022 +0100

    TODO: FIX test_get_database_server_stored

commit 60b97c3
Author: Umur Ozkul <[email protected]>
Date:   Sat Dec 31 00:22:53 2022 +0100

    mock!

commit 0c35136
Author: Umur Ozkul <[email protected]>
Date:   Fri Dec 30 23:45:38 2022 +0100

    mockall

commit e33453a
Author: Umur Ozkul <[email protected]>
Date:   Fri Dec 30 23:39:27 2022 +0100

    newline

commit 6d053c4
Author: Umur Ozkul <[email protected]>
Date:   Fri Dec 30 22:55:13 2022 +0100

    Remove pub

    Later decide what to leak out from db module

commit 6adc0c3
Author: Umur Ozkul <[email protected]>
Date:   Fri Dec 30 22:50:44 2022 +0100

    impl DatabaseServerStored

commit 2bababa
Author: Umur Ozkul <[email protected]>
Date:   Fri Dec 30 22:00:49 2022 +0100

    API

commit dec147b
Author: Umur Ozkul <[email protected]>
Date:   Fri Dec 30 18:43:18 2022 +0100

    cf_name

commit 76b5e28
Author: Umur Ozkul <[email protected]>
Date:   Fri Dec 30 18:37:58 2022 +0100

    Requests trait as parameter

commit b3917b2
Author: Umur Ozkul <[email protected]>
Date:   Fri Dec 30 17:39:40 2022 +0100

    delete redundant cf_name

commit 5b30a5c
Author: Umur Ozkul <[email protected]>
Date:   Fri Dec 30 17:36:37 2022 +0100

    README

commit fdde3b8
Author: Umur Ozkul <[email protected]>
Date:   Thu Dec 29 22:28:04 2022 +0100

    API

commit df9691a
Author: Umur Ozkul <[email protected]>
Date:   Thu Dec 29 22:03:15 2022 +0100

    rename to Database

commit 0483987
Author: Umur Ozkul <[email protected]>
Date:   Thu Dec 29 21:18:33 2022 +0100

    low level requests/effects

commit 148a127
Author: Umur Ozkul <[email protected]>
Date:   Thu Dec 29 16:19:02 2022 +0100

    API

commit 988381e
Author: Umur Ozkul <[email protected]>
Date:   Thu Dec 22 14:15:20 2022 +0100

    API

commit c54adbd
Author: Umur Ozkul <[email protected]>
Date:   Tue Dec 20 15:55:38 2022 +0100

    post user records

commit 9bb5f35
Author: Umur Ozkul <[email protected]>
Date:   Tue Dec 20 15:14:36 2022 +0100

    list functions

commit 448b00e
Author: Umur Ozkul <[email protected]>
Date:   Tue Dec 20 15:12:12 2022 +0100

    access user records

commit ac5bb99
Author: Umur Ozkul <[email protected]>
Date:   Tue Dec 20 15:04:39 2022 +0100

    user records

commit ed537d4
Author: Umur Ozkul <[email protected]>
Date:   Mon Dec 19 17:49:24 2022 +0100

    reorder trait methods

commit 72f35d6
Author: Umur Ozkul <[email protected]>
Date:   Mon Dec 19 17:46:47 2022 +0100

    reference conversions

commit 6367cf6
Author: Umur Ozkul <[email protected]>
Date:   Mon Dec 19 17:29:48 2022 +0100

    test cn_name

commit 4725025
Author: Umur Ozkul <[email protected]>
Date:   Mon Dec 19 17:14:13 2022 +0100

    update cf_name

commit 442fcb3
Author: Umur Ozkul <[email protected]>
Date:   Mon Dec 19 17:13:07 2022 +0100

    move cf_name

commit c39aaa3
Author: Umur Ozkul <[email protected]>
Date:   Mon Dec 19 16:53:19 2022 +0100

    derives

commit ffdc3b1
Author: Umur Ozkul <[email protected]>
Date:   Mon Dec 19 16:49:02 2022 +0100

    list values

commit b912236
Author: Umur Ozkul <[email protected]>
Date:   Mon Dec 19 16:33:25 2022 +0100

    entities and their references - code structure

commit 23a1aef
Author: Umur Ozkul <[email protected]>
Date:   Fri Dec 16 00:22:03 2022 +0100

    new structure based on references

commit 376b658
Author: Umur Ozkul <[email protected]>
Date:   Thu Dec 15 17:44:39 2022 +0100

    stable

commit 59adc09
Author: Umur Ozkul <[email protected]>
Date:   Sat Dec 10 02:13:18 2022 +0100

    meta

commit 3924a2d
Author: Umur Ozkul <[email protected]>
Date:   Sat Dec 10 01:41:53 2022 +0100

    cf_name

commit 3b021c4
Author: Umur Ozkul <[email protected]>
Date:   Sat Dec 10 01:37:38 2022 +0100

    meta

commit 5a1fe95
Author: Umur Ozkul <[email protected]>
Date:   Sat Dec 10 00:23:01 2022 +0100

    cf_name

commit 2deff5d
Author: Umur Ozkul <[email protected]>
Date:   Fri Dec 9 17:00:13 2022 +0100

    refactor definition

commit 1d24077
Author: Umur Ozkul <[email protected]>
Date:   Fri Dec 9 16:18:13 2022 +0100

    cf_name

commit 0221afd
Author: Umur Ozkul <[email protected]>
Date:   Thu Dec 8 08:18:38 2022 +0100

    restructure

commit 5e25b29
Author: Umur Ozkul <[email protected]>
Date:   Thu Dec 8 08:17:02 2022 +0100

    split names mod

commit 7748d5a
Author: Umur Ozkul <[email protected]>
Date:   Thu Dec 8 07:49:59 2022 +0100

    first skeleton

commit ce7ef08
Author: Umur Ozkul <[email protected]>
Date:   Wed Dec 7 20:49:01 2022 +0100

    request

commit ade8fc9
Author: Umur Ozkul <[email protected]>
Date:   Wed Dec 7 20:29:10 2022 +0100

    moved

commit d584964
Author: Umur Ozkul <[email protected]>
Date:   Wed Dec 7 17:56:51 2022 +0100

    simplify

commit 161d474
Author: Umur Ozkul <[email protected]>
Date:   Wed Nov 30 00:36:52 2022 +0100

    index_definition

commit 8964068
Author: Umur Ozkul <[email protected]>
Date:   Tue Nov 29 23:41:42 2022 +0100

    boxes

commit ba2f06b
Author: Umur Ozkul <[email protected]>
Date:   Tue Nov 29 23:23:36 2022 +0100

    fix test

commit 6bbb232
Author: Umur Ozkul <[email protected]>
Date:   Tue Nov 29 23:14:47 2022 +0100

    Rename to get_cf_name

commit 8e7338c
Author: Umur Ozkul <[email protected]>
Date:   Tue Nov 29 18:30:21 2022 +0100

    index definition; work in progress

commit a64b50e
Author: Umur Ozkul <[email protected]>
Date:   Tue Nov 29 18:29:47 2022 +0100

    fix serde config

commit f7a60f4
Author: Umur Ozkul <[email protected]>
Date:   Fri Nov 18 17:59:51 2022 +0100

    test pattern

commit bcc5a33
Author: Umur Ozkul <[email protected]>
Date:   Fri Nov 18 17:58:53 2022 +0100

    gitignore

commit d01b8c2
Author: Umur Ozkul <[email protected]>
Date:   Fri Nov 18 16:35:23 2022 +0100

    Dockerfile cache rust dependencies

commit 47e664d
Author: Umur Ozkul <[email protected]>
Date:   Fri Nov 18 15:41:18 2022 +0100

    MYAPPNAME

commit 124ad06
Author: Umur Ozkul <[email protected]>
Date:   Thu Nov 17 16:35:01 2022 +0100

    serde

commit 77df0fe
Author: Umur Ozkul <[email protected]>
Date:   Thu Nov 17 16:26:51 2022 +0100

    couchdb

commit afcb192
Author: Umur Ozkul <[email protected]>
Date:   Thu Nov 17 16:15:23 2022 +0100

    rocksdb

commit d52cdd2
Author: Umur Ozkul <[email protected]>
Date:   Thu Nov 17 16:02:16 2022 +0100

    rocksdb

commit 6ae7dbd
Author: Umur Ozkul <[email protected]>
Date:   Thu Nov 17 15:33:00 2022 +0100

    Dockerfile use persistent cargo cache index

commit bbd8547
Author: Umur Ozkul <[email protected]>
Date:   Thu Nov 17 15:14:21 2022 +0100

    actix

commit 35733b3
Author: Umur Ozkul <[email protected]>
Date:   Thu Nov 17 15:13:01 2022 +0100

    Dockerfile

commit 2486600
Author: Umur Ozkul <[email protected]>
Date:   Tue Nov 15 04:15:32 2022 +0100

    detailed coverage

commit dd5166e
Author: Umur Ozkul <[email protected]>
Date:   Tue Nov 15 04:13:57 2022 +0100

    Detailed coverage

commit 0669667
Author: Umur Ozkul <[email protected]>
Date:   Tue Nov 15 04:03:47 2022 +0100

    test code coverage

commit eca5208
Author: Umur Ozkul <[email protected]>
Date:   Tue Nov 15 03:51:09 2022 +0100

    gitignore

commit bcf8011
Author: Umur Ozkul <[email protected]>
Date:   Mon Nov 14 21:32:23 2022 +0100

    Dockerfile test

commit 28fcdce
Author: Umur Ozkul <[email protected]>
Date:   Mon Nov 14 21:32:02 2022 +0100

    gitignore

commit 493dcf5
Author: Umur Ozkul <[email protected]>
Date:   Mon Nov 14 21:08:53 2022 +0100

    Dockerfile
  • Loading branch information
Umur Ozkul committed Mar 10, 2023
1 parent 8de4815 commit 6debb69
Show file tree
Hide file tree
Showing 70 changed files with 3,771 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk
/ondo/target/
/ondo/coverage
/ondo/local-coverage
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rust 1.68.0
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"cSpell.words": [
"mockall",
"ondo",
"proto",
"protos"
]
}
28 changes: 28 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[package]
name = "ondo"
version = "0.1.0"
edition = "2021"
rust-version = "1.68.0"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
# https://actix.rs/docs/getting-started
actix-web = "4"
# https://docs.rs/rocksdb/latest/rocksdb/ # https://github.com/rust-rocksdb/rust-rocksdb # http://rocksdb.org/docs/getting-started.html
rocksdb = "0.19.0"
# https://docs.rs/couchdb/0.0.1/couchdb/
couchdb = "0.6.0"
# https://crates.io/crates/serde
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tokio = { version = "1.21.2", features = ["macros", "rt-multi-thread"] }
prost = "0.11.2"
tonic = "0.8.2"

[dev-dependencies]
mockall = "0.11.3"

[build-dependencies]
cargo-emit = "0.2.1"
tonic-build = "0.8.2"
83 changes: 83 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
FROM rust:1.68.0 as builder-dependencies

RUN rustup component add llvm-tools
ENV RUSTUPBIN=/usr/local/rustup/toolchains/1.68.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin
RUN cargo install cargo-binutils
RUN cargo install rustfilt
ENV RUSTFILT=/usr/local/cargo/bin/rustfilt
RUN apt update && apt-get install -y clang protobuf-compiler

WORKDIR /usr/src
RUN cargo new myapp
COPY Cargo.toml Cargo.lock /usr/src/myapp/
WORKDIR /usr/src/myapp
RUN cargo fetch

FROM builder-dependencies as builder
ENV MYAPPNAME=ondo-server
ENV RUSTFLAGS="-C instrument-coverage"
ENV LLVM_PROFILE_FILE="local-coverage/${MYAPPNAME}.profraw"
COPY . .

FROM builder as checker
RUN cargo check

FROM checker as test
RUN cargo test

FROM test as coverage
RUN $RUSTUPBIN/llvm-profdata merge -sparse local-coverage/${MYAPPNAME}.profraw -o local-coverage/${MYAPPNAME}.profdata
CMD cp -r local-coverage/* coverage/ &&\
$RUSTUPBIN/llvm-cov report -Xdemangler=$RUSTFILT target/debug/${MYAPPNAME} -instr-profile=coverage/${MYAPPNAME}.profdata

FROM test as dev-builder
RUN cargo build

FROM debian:buster-slim as dev
# RUN apt-get update && apt-get install -y extra-runtime-dependencies && rm -rf /var/lib/apt/lists/*
RUN apt-get update && rm -rf /var/lib/apt/lists/*
COPY --from=dev-builder /usr/src/myapp/target/debug/${MYAPPNAME} /usr/local/bin/${MYAPPNAME}
CMD ["${MYAPPNAME}"]

FROM test as release-builder
ENV RUSTFLAGS=""
RUN cargo build --release

FROM debian:buster-slim as release
# RUN apt-get update && apt-get install -y extra-runtime-dependencies && rm -rf /var/lib/apt/lists/*
RUN apt-get update && rm -rf /var/lib/apt/lists/*
COPY --from=release-builder /usr/src/myapp/target/release/${MYAPPNAME} /usr/local/bin/${MYAPPNAME}
CMD ["${MYAPPNAME}"]

# RUST Development Environment
# docker build --target builder -t builder-${MYAPPNAME} .
# docker run -it --rm -v $(pwd):/usr/src/myapp -v$HOME/.cargo/registry/:/usr/local/cargo/registry builder-${MYAPPNAME}

# CHECK
# docker build --target checker -t checker-${MYAPPNAME} .

# TEST
# docker build --target test -t test-${MYAPPNAME} .

# TEST & ACCESS COVERAGE
# docker build --target coverage -t coverage-${MYAPPNAME} .
# docker run -v $PWD/coverage:/usr/src/myapp/coverage -it --rm coverage-${MYAPPNAME}

# RUN release
# docker build --target release -t ${MYAPPNAME} .
# docker run -t --rm ${MYAPPNAME}

# RUN dev
# docker build --target dev -t dev-${MYAPPNAME} .h
# docker run -t --rm dev-${MYAPPNAME}

# DETAILED COVERAGE
# $RUSTUPBIN/llvm-cov show -Xdemangler=$RUSTFILT target/debug/${MYAPPNAME} -instr-profile=local-coverage/${MYAPPNAME}.profdata -show-line-counts-or-regions -show-instantiations #-name=add_quoted_string
# https://doc.rust-lang.org/rustc/instrument-coverage.html

# DOCKER DNS PROBLEM:
# $ nmcli dev show | grep 'IP4.DNS'
# In /etc/docker/daemon.json
# {
# "dns": ["x.x.x.x", "y.y.y.y"]
# }
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# ondo
RockDB extentions
apt-get install protobuf-compiler
6 changes: 6 additions & 0 deletions asdf.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
asdf plugin add rust
asdf install rust 1.68.0
asdf local rust 1.68.0



12 changes: 12 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
fn main() {
println!("cargo:rerun-if-changed=./proto");
tonic_build::compile_protos("./proto/hello.proto").unwrap();
tonic_build::compile_protos("./proto/ondo.proto").unwrap();
cargo_emit::rerun_if_changed!(
"./proto/hello.proto",
"./proto/ondo.proto",
"Cargo.toml",
"Cargo.lock",
"build.rs"
);
}
Binary file added coverage/ondo.profdata
Binary file not shown.
Binary file added coverage/ondo.profraw
Binary file not shown.
Binary file added local-coverage/ondo.profraw
Binary file not shown.
12 changes: 12 additions & 0 deletions proto/hello.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
syntax = "proto3";

package Hello;

service Hello {
rpc HelloWorld(HelloRequest) returns (HelloResponse) {}
}

message HelloRequest {}
message HelloResponse {
string message = 1;
}
123 changes: 123 additions & 0 deletions proto/ondo.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
syntax = "proto3";

package Remote;

// Create, Delete, Get, Update, List
service Remote {
rpc Version(EmptyMessage) returns (VersionResponse) {}
rpc CreateDatabaseServer(DatabaseServerMessage) returns (EmptyMessage) {}
rpc DeleteDatabaseServer(DatabaseServerReferenceMessage) returns (EmptyMessage) {}
rpc GetDatabaseServer(DatabaseServerReferenceMessage) returns (DatabaseServerMessage) {}
rpc UpdateDatabaseServer(DatabaseServerMessage) returns (EmptyMessage) {}
rpc ListDomains(EmptyMessage) returns (ArrayOfStringResponse) {}

rpc CreateDomain(DomainMessage) returns (EmptyMessage) {}
rpc DeleteDomain(DomainReferenceMessage) returns (EmptyMessage) {}
rpc GetDomain(DomainReferenceMessage) returns (DomainMessage) {}
rpc UpdateDomain(DomainMessage) returns (EmptyMessage) {}
rpc ListTables(DomainReferenceMessage) returns (ArrayOfStringResponse) {}

rpc CreateTable(TableMessage) returns (EmptyMessage) {}
rpc DeleteTable(TableReferenceMessage) returns (EmptyMessage) {}
rpc GetTable(TableReferenceMessage) returns (TableMessage) {}
rpc UpdateTable(TableMessage) returns (EmptyMessage) {}
rpc ListIndexes(TableReferenceMessage) returns (ArrayOfStringResponse) {}
rpc ListValues(TableReferenceMessage) returns (JsonResponse) {}
rpc ListValuesByIdRange(TableIdRangeReferenceMessage) returns (JsonResponse) {}
rpc ListValuesByIdList(TableIdListReferenceMessage) returns (JsonResponse) {}

rpc CreateIndex(IndexMessage) returns (EmptyMessage) {}
rpc DeleteIndex(IndexReferenceMessage) returns (EmptyMessage) {}
rpc GetIndex(IndexReferenceMessage) returns (IndexMessage) {}
rpc UpdateIndex(IndexMessage) returns (EmptyMessage) {}

rpc CreateValue(TableValueMessage) returns (EmptyMessage) {}
rpc DeleteValue(TableValueReferenceMessage) returns (EmptyMessage) {}
rpc GetValue(TableValueReferenceMessage) returns (JsonResponse) {}
rpc UpdateValue(TableValueMessage) returns (EmptyMessage) {}

rpc FindValues(IndexedValueReferenceMessage) returns (JsonResponse) {}
rpc FindValuesByRange(IndexedValueRangeReferenceMessage) returns (JsonResponse) {}
}

message EmptyMessage {}

message VersionResponse {
string version = 1;
}

message ArrayOfStringResponse {
repeated string values = 1;
}

message DatabaseServerReferenceMessage {
}

message DatabaseServerMessage {
}

message DomainReferenceMessage {
string domain_name = 1;
}

message DomainMessage {
DomainReferenceMessage domain_reference = 1;
// other fields
}

message TableReferenceMessage {
DomainReferenceMessage domain_reference = 1;
string table_name = 2;
}

message TableMessage {
TableReferenceMessage table_reference = 1;
// other fields
}

message IndexReferenceMessage {
TableReferenceMessage table_reference = 1;
string index_name = 2;
}

message IndexMessage {
IndexReferenceMessage index_reference = 1;
repeated string fields = 2;
}

message TableValueReferenceMessage {
TableReferenceMessage table_reference = 1;
uint64 _id = 2;
}

message TableValueMessage {
TableReferenceMessage table_reference = 1;
string json_value = 2; //_id field should be included therefore we use only table_reference
}

message JsonResponse {
string json_value = 1;
}

message TableIdRangeReferenceMessage {
TableReferenceMessage table_reference = 1;
uint64 start_id = 2;
uint64 end_id = 3;
}

message TableIdListReferenceMessage {
TableReferenceMessage table_reference = 1;
repeated uint64 ids = 2;
}

message IndexedValueRangeReferenceMessage {
IndexReferenceMessage index_reference = 1;
string start_key = 2;
string end_key = 3;
}

message IndexedValueReferenceMessage {
IndexReferenceMessage index_reference = 1;
string key = 2;
}

18 changes: 18 additions & 0 deletions src/bin/hello-client.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
use tonic::transport::Endpoint;
use tonic::Request;

use ondo::hello;
use hello::hello_client::HelloClient;
use hello::HelloRequest;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let addr = Endpoint::from_static("https://127.0.0.1:50051");

let mut client = HelloClient::connect(addr).await?;
let request = Request::new(HelloRequest{});
let response = client.hello_world(request).await?;
println!("response: {}", response.into_inner().message);

Ok(())
}
31 changes: 31 additions & 0 deletions src/bin/hello-server.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
use tonic::transport::Server;
use tonic::{Request, Response, Status};

use ondo::hello;
use hello::hello_server::{HelloServer, Hello};
use hello::{HelloRequest, HelloResponse};


#[derive(Default)]
pub struct MyServer {}

#[tonic::async_trait]
impl Hello for MyServer {
async fn hello_world(&self, _ : Request<HelloRequest>) -> Result<Response<HelloResponse>, Status> {
let response = HelloResponse { message: "Hello, World!".to_string() };
Ok(Response::new(response))
}
}

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let addr = "0.0.0.0:50051".parse()?;

let hello_server = MyServer::default();
Server::builder()
.add_service(HelloServer::new(hello_server))
.serve(addr)
.await?;

Ok(())
}
18 changes: 18 additions & 0 deletions src/bin/ondo-client.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
use tonic::transport::Endpoint;
use tonic::Request;

use ondo::remote;
use remote::remote_client::RemoteClient;
use remote::*; // request and response messages

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let addr = Endpoint::from_static("https://127.0.0.1:50051");

let mut client = RemoteClient::connect(addr).await?;
let request = Request::new(EmptyMessage{});
let response = client.version(request).await?;
println!("response: {}", response.into_inner().version);

Ok(())
}
Loading

0 comments on commit 6debb69

Please sign in to comment.