Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start standalone using spacetime start #91

Closed
wants to merge 149 commits into from
Closed

Commits on Jun 19, 2023

  1. Initial commit

    cloutiertyler committed Jun 19, 2023
    Configuration menu
    Copy the full SHA
    e5e3d78 View commit details
    Browse the repository at this point in the history
  2. Create LICENSE

    cloutiertyler authored Jun 19, 2023
    Configuration menu
    Copy the full SHA
    bcb3d52 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    15a79df View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ffb9e54 View commit details
    Browse the repository at this point in the history
  5. test

    cloutiertyler committed Jun 19, 2023
    Configuration menu
    Copy the full SHA
    bd9f7f4 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2023

  1. test (#1)

    * test
    
    * Fixed CI
    
    * Fixed tests
    
    * Fixed formatting
    
    * Fixed test error by removing chrono default features
    
    * Rename smoketests CI thing
    
    * Hopefully fix the testing issue
    
    * Fix typos
    
    * Fixed install git-hooks
    
    * Fixed formatting
    
    * Fixed compile error
    
    * fixed testing issues
    cloutiertyler authored Jun 20, 2023
    Configuration menu
    Copy the full SHA
    e8c0b53 View commit details
    Browse the repository at this point in the history
  2. Create README.md (#2)

    Signed-off-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
    cloutiertyler authored Jun 20, 2023
    Configuration menu
    Copy the full SHA
    9803c09 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ccf472f View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2023

  1. Fixed network issue

    cloutiertyler committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    97a8fa6 View commit details
    Browse the repository at this point in the history
  2. Refactor DbProgram to borrow transaction (#9)

    Co-authored-by: Tyler Cloutier <cloutiertyler@aol.com>
    RReverser and cloutiertyler authored Jun 22, 2023
    Configuration menu
    Copy the full SHA
    addfddf View commit details
    Browse the repository at this point in the history
  3. Run clippy on default module (#7)

    * Clippy runs on default module
    
    * Fix clippy issue with default module
    
    ---------
    
    Co-authored-by: Boppy <no-reply@boppygames.gg>
    jdetter and Boppy authored Jun 22, 2023
    Configuration menu
    Copy the full SHA
    50e357a View commit details
    Browse the repository at this point in the history
  4. Added log for orphan tables (#13)

    * I think somehow we are adding all tables as orphans, added log
    
    * Removed unneeded clone
    
    ---------
    
    Co-authored-by: Boppy <no-reply@boppygames.gg>
    jdetter and Boppy authored Jun 22, 2023
    Configuration menu
    Copy the full SHA
    f02c047 View commit details
    Browse the repository at this point in the history
  5. Fix bug for subcription that was not executing or returning if empty (#6

    )
    
    * Fix bug for subcription that was not executing or returning if empty
    
    * Clippy
    
    * Filter out deleted rows
    
    * Recover the op_type (DELETED, INSERTED) flag for the row in the subscription
    mamcx authored Jun 22, 2023
    Configuration menu
    Copy the full SHA
    2c5dcd0 View commit details
    Browse the repository at this point in the history
  6. Refactor bindings a bit + document it (#8)

    * grandfathered docs improvements in bindings
    
    * improve bindings
    
    * address review comments
    
    * remove late bound lifetime
    
    * undo derive for Timestamp to bisect bug
    Centril authored Jun 22, 2023
    Configuration menu
    Copy the full SHA
    c7cd32b View commit details
    Browse the repository at this point in the history
  7. Forbid unsupported syntax in SELECT & improve sql test suite (#5)

    * Forbid unsupported syntax in SELECT (like ORDER BY) & improve accuracy of sql test suite
    
    * Update crates/sqltest/src/main.rs
    
    Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
    Signed-off-by: Mario Montoya <mamcx@elmalabarista.com>
    
    ---------
    
    Signed-off-by: Mario Montoya <mamcx@elmalabarista.com>
    Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
    mamcx and Centril authored Jun 22, 2023
    Configuration menu
    Copy the full SHA
    3a0ead4 View commit details
    Browse the repository at this point in the history
  8. Sendgrid environment variables can now be configured in dev (#4)

    Signed-off-by: John Detter <4099508+jdetter@users.noreply.github.com>
    Co-authored-by: Boppy <no-reply@boppygames.gg>
    jdetter and Boppy authored Jun 22, 2023
    Configuration menu
    Copy the full SHA
    cf3215d View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2023

  1. Identity command improvements (#11)

    * Working on improving commands that use identities
    
    * Fix lints
    
    * Reverted file that shouldn't have changed
    
    * Found and fixed all other todos
    
    * Addressed more CLI TODOs
    
    * Fixes for formatting issues
    
    * Set names of identities
    
    * Set name of identities + clippy
    
    * Small fix
    
    * Added the start of a doc comment, switching over to another PR
    
    * Fixed tests that needed to be updated
    
    * Addressed more feedback and fixed several clippy issues
    
    * Small fix
    
    * Apply suggestions from code review
    
    Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
    Signed-off-by: John Detter <4099508+jdetter@users.noreply.github.com>
    
    * Added more doc comments
    
    * Addressing more feedback
    
    * Fixed really old bug in SpacetimeDB
    
    * Tests to verify new functionality
    
    * Fix clippy lints
    
    * Email during identity creation is optional
    
    * Fix output so testsuite passes
    
    ---------
    
    Signed-off-by: John Detter <4099508+jdetter@users.noreply.github.com>
    Co-authored-by: Boppy <no-reply@boppygames.gg>
    Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
    3 people authored Jun 23, 2023
    Configuration menu
    Copy the full SHA
    1549440 View commit details
    Browse the repository at this point in the history
  2. Smoketests work on macos (#15)

    * Some work
    
    * Getting smoketests working on mac
    
    * All tests are passing except known failing tests
    
    ---------
    
    Co-authored-by: Boppy <no-reply@boppygames.gg>
    jdetter and Boppy authored Jun 23, 2023
    Configuration menu
    Copy the full SHA
    0969e7e View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2023

  1. Changed C# reducer signature; Change reducer invocation method to ret…

    …urn wether or not reducer has subscribers; Moved all ReducerEvent and ReducerArgs code into a single file (#10)
    
    Co-authored-by: Steve <steve@codefics.com>
    SteveBoytsun and Steve authored Jun 26, 2023
    Configuration menu
    Copy the full SHA
    5eee895 View commit details
    Browse the repository at this point in the history
  2. Added force flag so that remove can be more easily used in CI (#22)

    Co-authored-by: Boppy <no-reply@boppygames.gg>
    jdetter and Boppy authored Jun 26, 2023
    Configuration menu
    Copy the full SHA
    13040aa View commit details
    Browse the repository at this point in the history
  3. Charp indexes (#14)

    * Changed C# reducer signature; Change reducer invocation method to return wether or not reducer has subscribers; Moved all ReducerEvent and ReducerArgs code into a single file
    
    * Formatting, tests
    
    * Clippy
    
    * Removed union from C# codegen
    
    * Tests
    
    * Update crates/cli/src/subcommands/generate/csharp.rs
    
    Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
    Signed-off-by: John Detter <4099508+jdetter@users.noreply.github.com>
    
    * Removed duplicate code
    
    * Lint
    
    * Clippy
    
    * CLIPPY
    
    * Generating custom indexes for unique / primary keys
    
    ---------
    
    Signed-off-by: John Detter <4099508+jdetter@users.noreply.github.com>
    Co-authored-by: Steve <steve@codefics.com>
    Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
    Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
    4 people authored Jun 26, 2023
    Configuration menu
    Copy the full SHA
    aee3eb6 View commit details
    Browse the repository at this point in the history
  4. Fix incomplete transaction bug (#21)

    * Fix incomplete transaction bug
    
    * Clippy
    mamcx authored Jun 26, 2023
    Configuration menu
    Copy the full SHA
    3d9e58e View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2023

  1. Making C# reducer args classes partial (#28)

    Co-authored-by: Steve <steve@codefics.com>
    SteveBoytsun and Steve authored Jun 27, 2023
    Configuration menu
    Copy the full SHA
    0ba0c8e View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2023

  1. SDK: avoid creating a nested tokio Runtime

    tokio runtimes cannot be nested, so we only create one if no ambient
    context can be found and pass around a runtime handle for spawning
    tasks.
    kim committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    efdd168 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2023

  1. Added an info API route

    cloutiertyler committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    96e2d7a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d27d88c View commit details
    Browse the repository at this point in the history
  3. bindings: address review comments (#20)

    * integrate jdetter's review
    
    * address phoebe's comments
    
    * improve errnos naming
    Centril authored Jun 29, 2023
    Configuration menu
    Copy the full SHA
    073889f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b221eec View commit details
    Browse the repository at this point in the history
  5. Rust client SDK consistent state views for callbacks (#16)

    Prior to this commit, callbacks in the Rust client SDK shared access to the global
    ClientCache while running asynchronously. This meant that a long-running or delayed
    callback could observe the ClientCache in a state later than the one that caused the
    callback's invocation, and had no way to access the specific state for which it was
    invoked.
    
    With this commit, each `Invoke` message to the callback worker includes an
    `Arc<ClientCache>` snapshot of the DB state when that callback was invoked. The callback
    worker stores that state in a `thread_local`, and methods that inspect
    tables (e.g. `TableType::iter`) read the state out of the `thread_local` when it is
    present. This allows callbacks to observe exactly the state which caused their invocation,
    never a later state, while maintaining the C#-like API where `ClientCache` access is based
    on free functions or static trait methods.
    
    ---------
    
    Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
    gefjon and jdetter authored Jun 29, 2023
    Configuration menu
    Copy the full SHA
    5b28cb6 View commit details
    Browse the repository at this point in the history
  6. Fix Spacetime Identity Remove (#33)

    * Fix bug and added a test
    
    * Test updates
    
    * Fix tests
    
    ---------
    
    Co-authored-by: Boppy <no-reply@boppygames.gg>
    jdetter and Boppy authored Jun 29, 2023
    Configuration menu
    Copy the full SHA
    1a4a5ac View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8887bae View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2023

  1. Fixes the restart problem (i.e. rebuilding the datastore from the mes…

    …sage log) (#34)
    
    * Fixes the restart problem (i.e. rebuilding the datastore from the message log)
    
    * Remove logging
    cloutiertyler authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    2621de2 View commit details
    Browse the repository at this point in the history
  2. CLI: dedup some code (#29)

    * simplify is_address
    
    * cli: dedup some code
    Centril authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    6e415e3 View commit details
    Browse the repository at this point in the history
  3. rename the APIs (#41)

    Centril authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    27ee8d9 View commit details
    Browse the repository at this point in the history
  4. Keys are now stored in docker named volume so they survive down/up (#42)

    Co-authored-by: Boppy <no-reply@boppygames.gg>
    jdetter and Boppy authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    0f11ac3 View commit details
    Browse the repository at this point in the history
  5. Fix schema equivalence check when updating a module (#39)

    `IndexDef` contains a table id, which is not yet known (i.e. zero) when
    constructing `TableDef` from the module describers. But it /is/ known
    for the schema obtained from the database catalog, so schemas compare
    inequal even if they're structurally equivalent.
    
    Fixed by just updating the proposed schema for known tables before
    comparing. Also update the smoke test to contain an indexed column.
    kim authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    28da9c5 View commit details
    Browse the repository at this point in the history
  6. CLI generate: friendlier error message when module compilation fails (

    #44)
    
    When running `spacetime generate` on a module which fails to compile,
    the last line of the output is now a human-readable error message
    which includes the module path and instructions to review the build errors.
    gefjon authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    67a4cfe View commit details
    Browse the repository at this point in the history
  7. Add primary key class variable to table autogen in python (#19)

    * Add primary key class variable to table autogen in python
    
    * Fix lint error
    
    ---------
    
    Co-authored-by: Derek Brinkmann <dbrinkmann@citadelstudios.net>
    dbrinkmanncw and dbrinkmann-citadel authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    6bf11e8 View commit details
    Browse the repository at this point in the history
  8. Rust client SDK ReducerInfo enum (#25)

    * `ReducerEvent` enum in Rust client SDK
    
    With this commit, row callbacks (`on_insert`, `on_delete`, `on_update`)
    in the Rust client SDK take an additional argument,
    `Option<&ReducerEvent>`, where `ReducerEvent` is an enum
    generated by the CLI's codegen
    with a variant for each reducer defined in the module.
    
    Having the SDK pass around an autogenerated type in this way
    (without adding a bunch of `<ReducerEvent>` generic parameters everywhere)
    requires storing the `ReducerEvent` in an `Arc<dyn Any>`.
    This has the added tangential benefit of avoiding cloning the `ReducerEvent`
    for each row callback.
    gefjon authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    8abe08b View commit details
    Browse the repository at this point in the history
  9. Derek/csharp sdk (#37)

    * Change NetworkManager to SpacetimeDBClient
    
    * Update csharp gen for ReducerEventBase
    
    * More fixes for ReducerEventBase
    
    * Remove commented out code
    
    ---------
    
    Co-authored-by: Derek Brinkmann <dbrinkmann@citadelstudios.net>
    dbrinkmanncw and dbrinkmann-citadel authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    0e18d7d View commit details
    Browse the repository at this point in the history
  10. CLI: Improves errors for call + misc refactoring (#45)

    * cli: refactor + improve call errors
    
    * cli: improve call errors
    
    * cli: simplify tasks
    
    * misc improvements
    
    * cargo fmt + clippy
    Centril authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    d6bb4dc View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    375834f View commit details
    Browse the repository at this point in the history
  12. Filtering on non-unique fields uses indexes when available (#40)

    With this commit, module-side `filter_by_{non-unique-field}` methods will use an index on the non-unique-field, if one exists.
    
    This is accomplished by altering `query::filter_by_field` to call `iter_by_col_eq` (formerly `seek_eq`), and having the returned `FilterByIter` gradually deserialize the returned buffer in a `Cursor`.
    gefjon authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    00d1e99 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    1a09863 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2023

  1. Pretty CLI Banner (#43)

    * Pretty banner
    
    * Updated the CLI ascii art
    
    ---------
    
    Co-authored-by: Boppy <no-reply@boppygames.gg>
    Co-authored-by: Tyler Cloutier <cloutiertyler@aol.com>
    3 people authored Jul 1, 2023
    Configuration menu
    Copy the full SHA
    9811b0e View commit details
    Browse the repository at this point in the history
  2. Upgrade Version to 0.5.0 (#47)

    * Committing version upgrade script
    
    * Fixes to the upgrade script
    
    * Upgrade version to 0.5.0
    
    * Update Cargo.toml
    
    No longer optional
    
    Signed-off-by: John Detter <4099508+jdetter@users.noreply.github.com>
    
    * Fixed small issue in the version upgrade script
    
    ---------
    
    Signed-off-by: John Detter <4099508+jdetter@users.noreply.github.com>
    Co-authored-by: Boppy <no-reply@boppygames.gg>
    jdetter and Boppy authored Jul 1, 2023
    Configuration menu
    Copy the full SHA
    3dfe03d View commit details
    Browse the repository at this point in the history
  3. Remove the ever growing pile of memory in locking_tx_datastore (#38)

    * Remove the ever growing pile of memory in locking_tx_datastore
    
    * Clippy lint
    
    * cargo fmt
    
    * Cleanups
    
    * Fix lint
    
    * Rename TxRecord::pv to product_value
    
    ---------
    
    Co-authored-by: Boppy <no-reply@boppygames.gg>
    Co-authored-by: Tyler Cloutier <cloutiertyler@aol.com>
    3 people authored Jul 1, 2023
    Configuration menu
    Copy the full SHA
    f54e0a7 View commit details
    Browse the repository at this point in the history
  4. Enable restart tests (#35)

    * Fixes the restart problem (i.e. rebuilding the datastore from the message log)
    
    * Remove logging
    
    * Enable restart tests
    
    * Fixed small issues with tests
    
    * Fixed restart-repeating-reducer test probably
    
    ---------
    
    Co-authored-by: Tyler Cloutier <cloutiertyler@aol.com>
    Co-authored-by: Boppy <no-reply@boppygames.gg>
    3 people authored Jul 1, 2023
    Configuration menu
    Copy the full SHA
    3d3d117 View commit details
    Browse the repository at this point in the history
  5. [TypeScript] Remove entries from filtering (#31)

    * [TypeScript] Remove entries from filtering
    
    In the TypeScript SDK we keep "entries" - an algebraic value of records.
    I added them because they were also used in the C# SDK, but we don't
    really need them. This commit changes generated filtering functions so
    that they compare actual instances instead of product values.
    drogus authored Jul 1, 2023
    Configuration menu
    Copy the full SHA
    46b0ca1 View commit details
    Browse the repository at this point in the history
  6. Nits: More specific error responses when authorization fails (#48)

    * Restoring Mazdak's nits
    
    * Update auth.rs
    
    Small issue
    
    Signed-off-by: John Detter <4099508+jdetter@users.noreply.github.com>
    
    ---------
    
    Signed-off-by: John Detter <4099508+jdetter@users.noreply.github.com>
    Co-authored-by: Boppy <no-reply@boppygames.gg>
    jdetter and Boppy authored Jul 1, 2023
    Configuration menu
    Copy the full SHA
    fdb9404 View commit details
    Browse the repository at this point in the history
  7. Cargo profile for building CLI more quickly (#50)

    * Cargo profile for building more quickly
    
    * opt level is redundant
    
    ---------
    
    Co-authored-by: Boppy <no-reply@boppygames.gg>
    jdetter and Boppy authored Jul 1, 2023
    Configuration menu
    Copy the full SHA
    6b0967b View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2023

  1. Configuration menu
    Copy the full SHA
    e0a00f8 View commit details
    Browse the repository at this point in the history
  2. Private tables (#17)

    * Initial bootstrap for private tables
    
    * Separate Access (private, public) for kind o table (system, user)
    
    * Validates the access to private tables
    
    * Check auth for drop table
    mamcx authored Jul 2, 2023
    Configuration menu
    Copy the full SHA
    2edc9c2 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2023

  1. Allow to authenticate with a short lived token for websocket (#51)

    * Allow to authenticate with a short lived token for websocket
    
    * Add CORS
    
    * Lints
    
    * Name errors properly
    
    * lint
    drogus authored Jul 3, 2023
    Configuration menu
    Copy the full SHA
    4bfb590 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2023

  1. Commit publish-crates script (#52)

    * Script for publishing crates to crates.io
    
    * Added sdk to the publish-crates script, renamed client-sdk to sdk
    
    * Updated Cargo.lock and added 2 crates to the upgrade version script
    
    * Small fix
    
    * Actual fix
    
    * Updated client API messages crate to be publishable
    
    * Added LICENSE file to sdk
    
    * Chose specific version for tokio-tungstenite
    
    ---------
    
    Co-authored-by: Boppy <no-reply@boppygames.gg>
    Co-authored-by: Tyler Cloutier <cloutiertyler@aol.com>
    3 people authored Jul 4, 2023
    1 Configuration menu
    Copy the full SHA
    a5a48c2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    aef807b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3f45968 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2023

  1. Upgrade ABI version (#56)

    mamcx authored Jul 5, 2023
    Configuration menu
    Copy the full SHA
    df4d203 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2023

  1. Configuration menu
    Copy the full SHA
    1483d71 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2023

  1. Small text updates

    cloutiertyler committed Jul 9, 2023
    Configuration menu
    Copy the full SHA
    b6b0132 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2023

  1. Configuration menu
    Copy the full SHA
    a276045 View commit details
    Browse the repository at this point in the history
  2. Fix potential panic bug

    cloutiertyler committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    8386884 View commit details
    Browse the repository at this point in the history
  3. Fixed clippy lint issue (#64)

    Co-authored-by: Boppy <no-reply@boppygames.gg>
    jdetter and Boppy authored Jul 10, 2023
    Configuration menu
    Copy the full SHA
    c6cb533 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2023

  1. Fixed issue where [SpacetimeDB.Enum] tag was not being generated in C# (

    #70)
    
    Co-authored-by: Boppy <no-reply@boppygames.gg>
    jdetter and Boppy authored Jul 12, 2023
    Configuration menu
    Copy the full SHA
    a66ced8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b7c50d9 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2023

  1. Fix case on primary_key for typescript (#63)

    Fix name of python sdk package for python
    
    Co-authored-by: Derek Brinkmann <dbrinkmann@citadelstudios.net>
    dbrinkmanncw and dbrinkmann-citadel authored Jul 13, 2023
    Configuration menu
    Copy the full SHA
    8b7e16a View commit details
    Browse the repository at this point in the history
  2. Crate name rust-wasm-test was renamed to rust-wasm-test-module, fixed (

    …#71)
    
    script
    
    Co-authored-by: Boppy <no-reply@boppygames.gg>
    jdetter and Boppy authored Jul 13, 2023
    Configuration menu
    Copy the full SHA
    bae9c4d View commit details
    Browse the repository at this point in the history
  3. SDK: Correctly encode auth header, and ser/de Credentials (#68)

    * SDK: Correctly encode auth header, and ser/de `Credentials`
    
    Prior to this commit, the Rust SDK incorrectly encoded a `Token` passed to `connect`,
    making it impossible to re-connect an existing user.
    (Shows what I get for never testing that.)
    With this commit, auth tokens are correctly base64-encoded
    in an `Authorization: Basic` header with the username `token`,
    which allows re-connecting as an existing user.
    
    Also, it was difficult to re-use `Credentials` from the Rust SDK, as:
    - they were opaque types with non-exported members
    - they did not implement any serialization / deserialization
    This commit makes `token.string` and `identity.bytes` public fields,
    and implements SATN `Serialize` and `Deserialize`
    for `Identity`, `Token` and `Credentials`,
    allowing clients to save their credentials for re-use, e.g. to a file.
    
    * SDK: Handful of small changes
    
    - `subscribe_owned` accepts `Vec<String>`; behaves like `subscribe`.
      - While developing `letrs`, a demo game, we needed to generate query strings at runtime,
        and passing them to `subscribe` would have involved an unergonomic dance
        of taking references which would then be converted to owned containers
        by the SDK.
        `subscribe_owned` eliminates that, allowing client authors
        to construct a set of queries at runtime and pass it directly to the SDK,
        without intervening referencies and copies.
    - Docstrings for `subscribe` and `subscribe_owned`.
    - Methods on `Identity` and `Token` for converting to/from strings and byte-vectors.
    - Removed long-forgotten `println` within `connect`
      which wrote the computed URI to stdout.
    gefjon authored Jul 13, 2023
    Configuration menu
    Copy the full SHA
    b543036 View commit details
    Browse the repository at this point in the history
  4. Spacetime Server Show + Ping (#75)

    * Added commands for spacetime server list and spacetime server ping
    
    * Small fix
    
    * Updated test
    
    ---------
    
    Co-authored-by: Boppy <no-reply@boppygames.gg>
    jdetter and Boppy authored Jul 13, 2023
    Configuration menu
    Copy the full SHA
    ff3a658 View commit details
    Browse the repository at this point in the history
  5. Fix bug in assigment of PK constraints & creation of associated index…

    …es. Upgrade SQL parsing (#74)
    mamcx authored Jul 13, 2023
    Configuration menu
    Copy the full SHA
    59c26f9 View commit details
    Browse the repository at this point in the history
  6. Return an error when scheduling a reducer with a long delay (#77)

    Prior to this commit, it was possible for a module to crash SpacetimeDB
    by scheduling a reducer with a delay longer than ~2yrs.
    This was due to our use of `tokio_utils::time::DelayQueue` to handle scheduling.
    `DelayQueue`'s internal data structure imposes a limit of 64^6 ms on delays,
    a little more than two years.
    Attempting to insert with a delay longer than that panics.
    
    With this commit, we avoid the panic by checking ourselves that the requested delay
    is not longer than 64^6 ms.
    This requires bubbling a `ScheduleError` up from `Scheduler::schedule`
    to `WasmInstanceEnv::schedule`, where it is converted into a `RuntimeError`
    which crashes the module.
    
    `Scheduler::schedule` could also fail because its transaction to compute a new id
    was fallible. This seems unlikely to ever fail, and if it does, we have bigger problems,
    so `unwrap`ping might still be reasonable for that case,
    but this commit converts it into a handle-able `Err`or anyway,
    as there's essentially no cost in complexity to doing so.
    gefjon authored Jul 13, 2023
    Configuration menu
    Copy the full SHA
    882d4cf View commit details
    Browse the repository at this point in the history
  7. [SDK] Small changes from review of Rust client quickstart draft (#78)

    * SDK: Convert `http[s]` uri schemes to `ws[s]`
    
    Prior to this commit, the Rust SDK would reject host URIs which began with `http://` or
    `https://`, requiring exactly one of `ws://` or `wss://`.
    Now, the SDK converts `http` URI schemes to their websocket equivalents,
    so clients can do `connect("http://localhost:3000", "my-database", my-creds)`.
    
    * SDK: Append `Args` suffix to generated reducer args structs
    
    This reduces the liklihood of name collisions,
    e.g. when a user has both a table `Guess` and a reducer `guess`.
    Prior to this commit, in that case, the SDK would generate
    a `struct guess::Guess` for the table, and
    a `struct guess_reducer::Guess` for the reducer args.
    Now, the latter is `struct guess_reducer::GuessArgs`.
    This will allow the CLI's codegen to re-export all generated structs
    from its main `mod.rs` file.
    
    * SDK: generated `mod.rs` re-exports all other files
    
    The `mod.rs` generated by `spacetime generate --lang rust`
    now re-exports all of the types and functions
    defined in other files it generates.
    
    This allows users to write e.g. `spacetime_types::Player`,
    rather than `spacetime_types::player::Player`.
    gefjon authored Jul 13, 2023
    Configuration menu
    Copy the full SHA
    c15dbdd View commit details
    Browse the repository at this point in the history
  8. Cargo Fmt on Generated Rust Files (#79)

    * Run cargo fmt on all rust output files
    
    * Lint fix
    
    ---------
    
    Co-authored-by: Boppy <no-reply@boppygames.gg>
    jdetter and Boppy authored Jul 13, 2023
    Configuration menu
    Copy the full SHA
    5e75d82 View commit details
    Browse the repository at this point in the history
  9. Use SpacetimeDB Large Runner (#81)

    Co-authored-by: Boppy <no-reply@boppygames.gg>
    jdetter and Boppy authored Jul 13, 2023
    Configuration menu
    Copy the full SHA
    31c545d View commit details
    Browse the repository at this point in the history
  10. Smoketests run in parallel (#49)

    * Working on improving commands that use identities
    
    * Fix lints
    
    * Reverted file that shouldn't have changed
    
    * Found and fixed all other todos
    
    * Addressed more CLI TODOs
    
    * Fixes for formatting issues
    
    * Set names of identities
    
    * Set name of identities + clippy
    
    * Small fix
    
    * Added the start of a doc comment, switching over to another PR
    
    * Fixed tests that needed to be updated
    
    * Addressed more feedback and fixed several clippy issues
    
    * Small fix
    
    * Apply suggestions from code review
    
    Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
    Signed-off-by: John Detter <4099508+jdetter@users.noreply.github.com>
    
    * Added more doc comments
    
    * Addressing more feedback
    
    * Fixed really old bug in SpacetimeDB
    
    * Tests to verify new functionality
    
    * Fix clippy lints
    
    * Email during identity creation is optional
    
    * Some work
    
    * Getting smoketests working on mac
    
    * All tests are passing except known failing tests
    
    * Working on parallel smoketests
    
    * Fixed some bugs in saving configs that was preventing this from working
    
    * Fixes required for parallel tests
    
    * Tests are working in parallel
    
    * Pruned changes
    
    * retab
    
    * re-retab
    
    * retab the lib file
    
    * Cargo profile for building more quickly
    
    * I have to rebase on another PR
    
    * smoketest fixes
    
    * create_project and reset_project are now the same thing, removed
    create_project
    
    * More fixes
    
    * Removed print statement
    
    * Small fix
    
    * Another fix
    
    * Tons of improvements to the smoketests
    
    * Have to rebase on master
    
    * Small fixes
    
    * More progress
    
    * Finally working correctly!
    
    * Apparently we're missing this
    
    * Enable command output
    
    * Listing installed targets
    
    * Clean before building
    
    * What is going on
    
    * Something super wonky going on
    
    * Another test
    
    * Skip building containers for now
    
    * Small fix
    
    * Test using cargo instead
    
    * Changed workflow a bit
    
    * CI is stuck
    
    * Small fix
    
    * Another fix
    
    * Try cargo run instead of building spacetime CLI
    
    * Removed workflow step
    
    * Fixing all of the tests
    
    * Identity test
    
    * Tests should finally be working
    
    * Enable debug
    
    * Remove spacetime from path
    
    * Another try
    
    * Logic fix
    
    * Another fix
    
    * Another fix
    
    * Working now?
    
    * Another fix
    
    * Finally working again
    
    * Adding github containers back in
    
    * CI fix
    
    * Use SpacetimeDB Large Runner
    
    * Updated test to get more output
    
    * Changed 0ms to 10ms to improve parallel test stability
    
    * Removed unused logs
    
    Signed-off-by: John Detter <4099508+jdetter@users.noreply.github.com>
    
    * Removed unnecessary reset_project
    
    * Removed reset_config where its not needed
    
    * Reset template
    
    ---------
    
    Signed-off-by: John Detter <4099508+jdetter@users.noreply.github.com>
    Co-authored-by: Boppy <no-reply@boppygames.gg>
    Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
    3 people authored Jul 13, 2023
    Configuration menu
    Copy the full SHA
    e2cdcd2 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2023

  1. Removing 'repl' as a distinct option for the 'cli' (#62)

    * Removing 'repl' as a distinct option for the 'cli' and move into the 'sql' invocation with --interactive
    
    * Move up the logic for parsing in repl
    mamcx authored Jul 14, 2023
    Configuration menu
    Copy the full SHA
    6e64b38 View commit details
    Browse the repository at this point in the history
  2. Add SDK API breakage checkbox to PR template (#83)

    The Rust SDK lives in this repository
    and exposes an API on which Rust clients will depend,
    distinct from both the module API
    and the ClientAPI (which is the protocols all SDKs use to commuticate with a module).
    
    This commit adds a checkbox to the PR template,
    in the style of the two existing checkboxes,
    to identify breaking changes to the SDK API.
    gefjon authored Jul 14, 2023
    Configuration menu
    Copy the full SHA
    16f951e View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2023

  1. [SDK] Permit registering callbacks before calling connect (#80)

    Prior to this commit,
    all interfaces for registering and de-registering callbacks returned `Result`,
    with an error when attempting to register a callback before `connect`ing.
    This was due to a quirk in the SDK's implementation,
    where callbacks were stored alongside information
    supplied by `connect`, e.g. autogenerated dispatch functions.
    
    With this commit, the SDK stores a partially-initialized `BackgroundDbConnection`
    in a `lazy_static`,
    into which callbacks can be registered.
    The autogenerated `connect` function finishes initializing the `BackgroundDbConnection`,
    setting various `Option` fields to `Some`.
    This means it is now possible to register callbacks before calling `connect`.
    
    In particular, this prevents a race condition where `on_connect` callbacks
    might never be invoked
    because credentials might have become available after calling `connect`,
    but before registering the callback.
    
    Many user-facing functions which interact with callbacks
    have had their return types changed;
    where they previously returned a `Result`,
    they now return the "success" type unwrapped.
    gefjon authored Jul 17, 2023
    Configuration menu
    Copy the full SHA
    e87fae3 View commit details
    Browse the repository at this point in the history
  2. [SDK] on_subscription_applied callbacks (#82)

    This commit adds support for the `on_subscription_applied` callback,
    which runs when the initial rows of a subscription become available
    after a `subscribe` call.
    gefjon authored Jul 17, 2023
    Configuration menu
    Copy the full SHA
    a8a9257 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2023

  1. [SDK] Functions for saving and loading Credentials to/from disk (#84)

    [SDK] Functions for saving and loading `Credentials` to/from disk
    
    This commit adds two functions to the Rust SDK, identity::save_credentials and identity::load_credentials, which abstract over the common desire to save a user's credentials to a file in (a subdir of) ~, and load it when re-connecting.
    
    In addition to de-duplicating common functionality, this allows us to remove a relatively complex section of the Rust SDK Quickstart guide.
    gefjon authored Jul 18, 2023
    Configuration menu
    Copy the full SHA
    788a3f7 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2023

  1. Configuration menu
    Copy the full SHA
    bfa3806 View commit details
    Browse the repository at this point in the history
  2. Improve release build times (#67)

    Thin LTO should be about as good as far LTO, but much faster, and debug info is something that takes enormous amount of time to handle throughout build pipeline but something we don't usually need in release builds (symbol information should be enough if it's backtraces that we're interested in).
    
    This cuts `cargo build --release` for the CLI from 9m 40s to 5m 20s on my machine.
    RReverser authored Jul 19, 2023
    Configuration menu
    Copy the full SHA
    2f9390e View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2023

  1. spacetime start implementation

    Boppy committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    06fd97b View commit details
    Browse the repository at this point in the history
  2. Tons of new options

    Boppy committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    814ddb2 View commit details
    Browse the repository at this point in the history
  3. Small improvements

    Boppy committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    071812c View commit details
    Browse the repository at this point in the history
  4. Lints

    Boppy committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    2527e52 View commit details
    Browse the repository at this point in the history
  5. Increase some values for canceling reducers (#92)

    Co-authored-by: Boppy <no-reply@boppygames.gg>
    jdetter and Boppy authored Jul 20, 2023
    Configuration menu
    Copy the full SHA
    007fd15 View commit details
    Browse the repository at this point in the history
  6. Reformat

    Boppy committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    0cdf9f0 View commit details
    Browse the repository at this point in the history
  7. bindings-macro: add note re. autoinc (#59)

    * bindings-macro: add note re. autoinc
    
    * Update crates/bindings-macro/src/lib.rs
    
    Co-authored-by: Kim Altintop <kim@eagain.io>
    Signed-off-by: Mazdak Farrokhzad <twingoow@gmail.com>
    
    * spacetimedb_tabletype: minor docs tweaks
    
    * address pheobe's review
    
    ---------
    
    Signed-off-by: Mazdak Farrokhzad <twingoow@gmail.com>
    Co-authored-by: Kim Altintop <kim@eagain.io>
    Centril and kim authored Jul 20, 2023
    Configuration menu
    Copy the full SHA
    caa4d61 View commit details
    Browse the repository at this point in the history
  8. [SDK] Generated on-reducer callback register functions. (#86)

    * [SDK] For each reducer, generate `on_{reducer}` and `once_{on_reducer}`
    
    Prior to this commit, to register an on-reducer callback for a reducer `set_name`,
    a client author would write `SetNameArgs::on_reducer(...)`,
    with their callback accepting a reference to a `SetNameArgs`
    which contained the reducer arguments.
    
    Now, in addition to that interface, we generate a function `on_set_name`,
    which accepts a callback that takes the arguments unpacked,
    rather than as a struct.
    
    That is, for the quickstart's `set_name` reducer, we generate:
    
    ```rust
    pub fn on_set_name(
        mut __callback: impl FnMut(&Identity, Status, &String) + Send + 'static,
    ) -> ReducerCallbackId<SetNameArgs> {
        SetNameArgs::on_reducer(move |__identity, __status, __args| {
            let SetNameArgs { name } = __args;
            __callback(__identity, __status, name);
        })
    }
    ```
    
    Note the use of double-underscored variable names to avoid name collisions,
    since we can't `gensym` a unique name.
    
    We also generate `once_on_set_name`, which is like `on_set_name`,
    but takes a `FnOnce` instead of a `FnMut`;
    and `remove_on_set_name`, which un-registers a callback.
    
    * Also generate `remove_on_{reducer}` functions to un-register callbacks.
    gefjon authored Jul 20, 2023
    Configuration menu
    Copy the full SHA
    92743d2 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2023

  1. Some improvements

    Boppy committed Jul 22, 2023
    Configuration menu
    Copy the full SHA
    c65d3cd View commit details
    Browse the repository at this point in the history
  2. Standalone is a feature of the CLI

    Boppy committed Jul 22, 2023
    Configuration menu
    Copy the full SHA
    83905fb View commit details
    Browse the repository at this point in the history
  3. Some arguments only have default values in spacetime start vs

    spacetimedb start
    Boppy committed Jul 22, 2023
    Configuration menu
    Copy the full SHA
    c9c1380 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    32ea243 View commit details
    Browse the repository at this point in the history
  5. Small environment variable changes

    Boppy committed Jul 22, 2023
    Configuration menu
    Copy the full SHA
    0ada1e0 View commit details
    Browse the repository at this point in the history
  6. I don't know why this change was necessary, but this fixes the

    compilation issue
    Boppy committed Jul 22, 2023
    Configuration menu
    Copy the full SHA
    2fa7a95 View commit details
    Browse the repository at this point in the history
  7. Small lint issues

    Boppy committed Jul 22, 2023
    Configuration menu
    Copy the full SHA
    e154f13 View commit details
    Browse the repository at this point in the history
  8. Cargo format

    Boppy committed Jul 22, 2023
    Configuration menu
    Copy the full SHA
    35fc244 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    8141f52 View commit details
    Browse the repository at this point in the history
  10. Rust format

    Boppy committed Jul 22, 2023
    Configuration menu
    Copy the full SHA
    9ba7d91 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2023

  1. [SDK] Expose reducer error messages as a field in Status::Failed. (#93

    )
    
    Prior to this commit, the error messages returned by reducers
    were unavailable to clients; `Status::Failed` was a singleton.
    With this commit, `Status::Failed` holds a `String`,
    the string representation of the `Err` returned by the reducer.
    
    This means that `Status` is no longer `Copy`,
    and must be passed by reference to callbacks instead of by value.
    gefjon authored Jul 24, 2023
    Configuration menu
    Copy the full SHA
    04c30c4 View commit details
    Browse the repository at this point in the history
  2. [Modules] spacetimedb(index) macro now uses more consistent parens. (

    …#97)
    
    Prior to this comment, the `#[spacetimedb(index)]` attribute accepted its arguments like:
    
    ```rust
    \#[spacetimedb(index(btree), name = "NAME", FIELD_NAMES...)]
    ```
    
    Putting the `NAME` and `FIELD_NAMES` arguments outside of the
    inner parens was uninutitive. With this commit, the syntax is changed to:
    
    ```rust
    
    \#[spacetimedb(index(btree, name = "NAME", FIELD_NAMES...))]
    ```
    gefjon authored Jul 24, 2023
    Configuration menu
    Copy the full SHA
    fc245ce View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2023

  1. Check authorization when attempting to delete a database (#96)

    In the ClientAPI /database/delete/:address endpoint, require authorization before deleting a database.
    gefjon authored Jul 25, 2023
    Configuration menu
    Copy the full SHA
    78c706c View commit details
    Browse the repository at this point in the history
  2. Run cargo fmt (#99)

    kazimuth authored Jul 25, 2023
    Configuration menu
    Copy the full SHA
    80ad629 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2023

  1. Switch identities to identity type, Add ReducerEvent to row updates, …

    …remove check_callback_signature (#85)
    
    Co-authored-by: Derek Brinkmann <dbrinkmann@citadelstudios.net>
    dbrinkmanncw and dbrinkmann-citadel authored Jul 26, 2023
    Configuration menu
    Copy the full SHA
    6a0f3a1 View commit details
    Browse the repository at this point in the history
  2. Update client_api.proto docs based on my new understanding. (#101)

    Edit a few doc comments in client_api.proto to resolve questions I asked myself while writing the initial docs.
    gefjon authored Jul 26, 2023
    Configuration menu
    Copy the full SHA
    d6df873 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2a7220b View commit details
    Browse the repository at this point in the history
  4. Actually use indexes (#73)

    * Actually use indexes
    
    * Get rid of unneeded references
    kulakowski authored Jul 26, 2023
    Configuration menu
    Copy the full SHA
    ff98499 View commit details
    Browse the repository at this point in the history
  5. Remove implicit transactions and thread the Tx instead (#65)

    * Remove implicit transactions and thread the Tx instead
    
    * Split logic for proper Tx handling
    mamcx authored Jul 26, 2023
    Configuration menu
    Copy the full SHA
    cdc174b View commit details
    Browse the repository at this point in the history
  6. Add ReducerEvent to Reducer callbacks to match C# SDK and provide err…

    …or message (#94)
    
    Co-authored-by: Derek Brinkmann <dbrinkmann@citadelstudios.net>
    dbrinkmanncw and dbrinkmann-citadel authored Jul 26, 2023
    Configuration menu
    Copy the full SHA
    97ca22d View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2023

  1. Document + Refactor SATS (#66)

    * Document most of SATS
    
    * sats: simplify Serialize impls
    
    * sats: simplify Deserialize impls
    
    * improve sats::de docs
    
    * document sats::bsatn
    
    * simplify sats fmt/map notation
    
    * value serializer: docs + opt
    
    * docs/refactor sats::algebraic_value::{ser,de}
    
    * sats: document serde conversions
    
    * cargo fmt
    
    * small fixes
    
    * fix tests
    
    * fix serde feature
    
    * sats: address pheobe's review
    
    * fix doc comment
    
    * fix test failure
    
    * Remove unusued import
    
    * Fix a borrowing issue introduced by the merge of master
    
    The definitions of these were tweaked in some way, I think,
    such that references to them are no longer automatically 'static?
    
    ---------
    
    Co-authored-by: George Kulakowski <george@clockworklabs.io>
    Centril and kulakowski authored Jul 27, 2023
    Configuration menu
    Copy the full SHA
    c3526ee View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    83e88d8 View commit details
    Browse the repository at this point in the history
  3. generate types to SpacetimeDB.Types namespace (#88)

    * generate types to SpacetimeDB.Types namespace
    
    * Add Reducer partial class to csharp codegen to tag it with the ReducerClass attribute
    
    * Changes based on feedback
    
    * Fix SpacetimeDB tests
    
    * One more smoketest fix
    
    ---------
    
    Co-authored-by: Derek Brinkmann <dbrinkmann@citadelstudios.net>
    dbrinkmanncw and dbrinkmann-citadel authored Jul 27, 2023
    Configuration menu
    Copy the full SHA
    ad7bc6c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1acb879 View commit details
    Browse the repository at this point in the history
  5. Switch identities to identity type, Add ReducerEvent to row updates, …

    …remove check_callback_signature (#109)
    
    Co-authored-by: Derek Brinkmann <dbrinkmann@citadelstudios.net>
    dbrinkmanncw and dbrinkmann-citadel authored Jul 27, 2023
    Configuration menu
    Copy the full SHA
    3adf973 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2023

  1. Identity: use identity_bytes in SpacetimeType (#89)

    * Identity: use identity_bytes in SpacetimeType
    
    * Use SDK's version of Identity instead
    
    Signed-off-by: John Detter <4099508+jdetter@users.noreply.github.com>
    
    * make CI happy
    
    * make axum happy<
    
    * make axum happy v2
    
    * Identity Codegen Impl C# (#100)
    
    * Changes required for identity generation in csharp
    
    * Clippy fix
    
    * Seems to be working
    
    * Fixes based on Mazdak suggestions
    
    ---------
    
    Co-authored-by: Boppy <no-reply@boppygames.gg>
    Co-authored-by: Derek Brinkmann <dbrinkmann@citadelstudios.net>
    
    * Fix compile error that somehow got merged in from #100
    
    * Minor changes to allow `Identity` columns and reducer args in the SDK
    
    - `sdk::identity::Identity` must now be `Hash`,
      because declaring a `#[primarykey]` column with type `Identity`
      will cause the SDK to generate code that uses `Identity` as a `HashMap` key.
      This instance was previously not necessary because the key would be `Vec<u8>`,
      but probably should've been included anyway.
    - The codegen can just refer to `Identity` without path-qualifying,
      because it already imports the `Identity` type into all files it generates.
    
    * address pheobe's review
    
    * pacify clippy
    
    ---------
    
    Signed-off-by: John Detter <4099508+jdetter@users.noreply.github.com>
    Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
    Co-authored-by: Boppy <no-reply@boppygames.gg>
    Co-authored-by: Derek Brinkmann <dbrinkmann@citadelstudios.net>
    Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
    5 people authored Jul 28, 2023
    Configuration menu
    Copy the full SHA
    899dc4f View commit details
    Browse the repository at this point in the history
  2. Update README.md

    Signed-off-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
    cloutiertyler authored Jul 28, 2023
    Configuration menu
    Copy the full SHA
    9940668 View commit details
    Browse the repository at this point in the history
  3. Added logos

    cloutiertyler committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    d4d9559 View commit details
    Browse the repository at this point in the history
  4. Update README.md (#110)

    Signed-off-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
    cloutiertyler authored Jul 28, 2023
    Configuration menu
    Copy the full SHA
    c6498f0 View commit details
    Browse the repository at this point in the history
  5. Update README

    cloutiertyler committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    9eaf89a View commit details
    Browse the repository at this point in the history
  6. Update README.md

    cloutiertyler committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    a017f73 View commit details
    Browse the repository at this point in the history
  7. Update README.md

    cloutiertyler committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    0822e1d View commit details
    Browse the repository at this point in the history
  8. Update README.md (#112)

    Signed-off-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
    cloutiertyler authored Jul 28, 2023
    Configuration menu
    Copy the full SHA
    37c7827 View commit details
    Browse the repository at this point in the history
  9. Update README.md

    Signed-off-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
    cloutiertyler authored Jul 28, 2023
    Configuration menu
    Copy the full SHA
    901d6ee View commit details
    Browse the repository at this point in the history
  10. Update README.md

    Signed-off-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
    cloutiertyler authored Jul 28, 2023
    Configuration menu
    Copy the full SHA
    9c2826f View commit details
    Browse the repository at this point in the history
  11. Identity generation typescript (#113)

    * no message
    
    * Some fixes
    
    * Fix whitespace issue that was failing tests
    
    ---------
    
    Co-authored-by: Derek Brinkmann <dbrinkmann@citadelstudios.net>
    dbrinkmanncw and dbrinkmann-citadel authored Jul 28, 2023
    Configuration menu
    Copy the full SHA
    498e1d1 View commit details
    Browse the repository at this point in the history
  12. Identity generation python (#111)

    * Python changes for identity codegen
    
    * Fix bug in identity codegen
    
    * Fix unwrapping identity in codegen
    
    ---------
    
    Co-authored-by: Derek Brinkmann <dbrinkmann@citadelstudios.net>
    dbrinkmanncw and dbrinkmann-citadel authored Jul 28, 2023
    Configuration menu
    Copy the full SHA
    5d6d277 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2023

  1. Configuration menu
    Copy the full SHA
    7c44ea6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6cf7607 View commit details
    Browse the repository at this point in the history
  3. Energy related updates

    cloutiertyler committed Jul 29, 2023
    Configuration menu
    Copy the full SHA
    9e4a5cf View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2023

  1. Configuration menu
    Copy the full SHA
    ff4e26b View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2023

  1. cargo fmt

    cloutiertyler committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    696bd49 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    38e3692 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2a43923 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a4010ec View commit details
    Browse the repository at this point in the history
  5. Default is now testnet.spacetimedb.com instead of (#95)

    spacetimedb.com/spacetimedb
    
    Co-authored-by: Boppy <no-reply@boppygames.gg>
    jdetter and Boppy authored Jul 31, 2023
    Configuration menu
    Copy the full SHA
    f545fd3 View commit details
    Browse the repository at this point in the history
  6. Rename host argument in SDK's connect to spacetimedb_uri (#119)

    This commit renames the first argument to connect from host to spacetimedb_uri. It's not just a host(name), it's the URI of the SpacetimeDB instance.
    gefjon authored Jul 31, 2023
    Configuration menu
    Copy the full SHA
    34ce8ea View commit details
    Browse the repository at this point in the history
  7. Fix bug in locating fields when a JOIN clause is present (#102)

    * Fix bug in locating fields when a JOIN clause is present
    
    * Update crates/lib/src/relation.rs
    
    Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
    Signed-off-by: Mario Montoya <mamcx@elmalabarista.com>
    
    * Update crates/lib/src/relation.rs
    
    Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
    Signed-off-by: Mario Montoya <mamcx@elmalabarista.com>
    
    * Update crates/core/src/subscription/subscription.rs
    
    Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
    Signed-off-by: Mario Montoya <mamcx@elmalabarista.com>
    
    * Update crates/core/src/subscription/subscription.rs
    
    Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
    Signed-off-by: Mario Montoya <mamcx@elmalabarista.com>
    
    * Update crates/core/src/subscription/subscription.rs
    
    Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
    Signed-off-by: Mario Montoya <mamcx@elmalabarista.com>
    
    * Update crates/core/src/subscription/query.rs
    
    Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
    Signed-off-by: Mario Montoya <mamcx@elmalabarista.com>
    
    * Small doc nits
    
    * Fix test
    
    ---------
    
    Signed-off-by: Mario Montoya <mamcx@elmalabarista.com>
    Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
    mamcx and Centril authored Jul 31, 2023
    1 Configuration menu
    Copy the full SHA
    333bbc3 View commit details
    Browse the repository at this point in the history
  8. Add quickstart-chat example module and client (#116)

    This commit adds the `quickstart-chat` Rust module and client to the appropriate examples dirs.
    gefjon authored Jul 31, 2023
    Configuration menu
    Copy the full SHA
    1e7cf1e View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2023

  1. Reimplemented the energy tracking for identities (#115)

    * Refactoring some stuff for energy
    
    * Fix an issue with i128 query params
    
    * Infinite budget in Standalone
    
    * Energy and crash fixes
    
    * Hopefully fixed the test that now has energy
    
    * Addresses Centril's comments
    
    * Cargo fmt
    
    ---------
    
    Signed-off-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
    cloutiertyler authored Aug 1, 2023
    Configuration menu
    Copy the full SHA
    d205670 View commit details
    Browse the repository at this point in the history
  2. Apply suggestions from code review

    Committing suggested changes (comments only for now)
    
    Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
    Signed-off-by: John Detter <4099508+jdetter@users.noreply.github.com>
    jdetter and Centril authored Aug 1, 2023
    Configuration menu
    Copy the full SHA
    feab6f2 View commit details
    Browse the repository at this point in the history
  3. Update LICENSE.txt

    Signed-off-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
    cloutiertyler authored Aug 1, 2023
    Configuration menu
    Copy the full SHA
    e40df5f View commit details
    Browse the repository at this point in the history
  4. Updated standalone version command to be more similar to the cli's

    version command
    Boppy committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    60b27df View commit details
    Browse the repository at this point in the history
  5. Delete LICENSE-SSPL.txt

    Signed-off-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
    cloutiertyler authored Aug 1, 2023
    Configuration menu
    Copy the full SHA
    25f2d52 View commit details
    Browse the repository at this point in the history
  6. Stop generating OnUpdate if there is no primary key (#120)

    Co-authored-by: Derek Brinkmann <dbrinkmann@citadelstudios.net>
    dbrinkmanncw and dbrinkmann-citadel authored Aug 1, 2023
    Configuration menu
    Copy the full SHA
    5d25f2c View commit details
    Browse the repository at this point in the history
  7. Updated comment about default values

    Boppy committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    668276e View commit details
    Browse the repository at this point in the history
  8. Added comment string back in

    Boppy committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    74b7eec View commit details
    Browse the repository at this point in the history
  9. Have to test on windows

    Boppy committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    b42cf92 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    480008e View commit details
    Browse the repository at this point in the history