profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/emk/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

emk/duktape-rs 35

Rust wrapper for Duktape, a lightweight, embedded JavaScript interpreter.

emk/credentials 17

Fetch secure credentials from multiple backends (environment, Vault, etc.) using Rust

emk/electron-test 16

OUT OF DATE! A fully buzzword-compliant experimental project: Electron, TypeScript, React, Redux, WebPack and Rust. It compiles and runs!

emk/compose_yml 15

WIP: Read and write docker-compose.yml files using Rust

emk/accessors 10

(WIP) Getters and setters for Rust using macros 1.1

emk/cesu8-rs 7

Rust library which converts between UTF-8 and CESU-8 encodings.

emk/blogitr 5

(Work in progress.) A blog storage engine based on git.

emk/aws-s3 4

AWS-S3 is a Ruby implementation of Amazon's S3 REST API

emk/devise 3

Flexible authentication solution for Rails with Warden

emk/elisp 3

My personal Emacs configuration

push eventfaradayio/sdk_docs

gh-actions

commit sha afa4ed1f897763c31d82d150cb00bb1046bfc680

Deploy website - based on e8e2a787e3e969248a10f17e7f50389212f4c3fe

view details

push time in 5 hours

push eventfaradayio/sdk_docs

Eric Kidd

commit sha e8e2a787e3e969248a10f17e7f50389212f4c3fe

openapi: Fix minor issues More implementations, more minor corrections.

view details

push time in 5 hours

push eventfaradayio/sdk_docs

gh-actions

commit sha 669336d4c517a0287fd26e2b1f3283722d68119e

Deploy website - based on 066423a2361b816e45eae15f271d32e6b2b6d9a3

view details

push time in 7 hours

push eventfaradayio/sdk_docs

Eric Kidd

commit sha 066423a2361b816e45eae15f271d32e6b2b6d9a3

openapi: Rename rosters to persona sets We also fix a number of minor details.

view details

push time in 7 hours

push eventfaradayio/sdk_docs

gh-actions

commit sha 4e55b9668e363e30fa902a74c4e2cc038012d4ed

Deploy website - based on e3289d0d1465487ea44e25025de725715001a1ea

view details

push time in a day

push eventfaradayio/sdk_docs

Eric Kidd

commit sha e3289d0d1465487ea44e25025de725715001a1ea

openapi: Return 201 from POST /cohorts

view details

push time in a day

issue openedprisma/prisma

Relations (and `planetScaleMode`) are not preserved during `db pull` with PostgreSQL

Bug description

I'm trying to find a way to support a Postgres server that uses Citus, a distributed Postgres extension. Citus supports FOREIGN KEY constraints on distributed tables, but they can be extremely cumbersome to set up (especially when they involve "reference" tables with circular relationships).

How to reproduce

  1. Set up a PostgreSQL connection to a database with no declared FOREIGN KEY constraints.
generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["planetScaleMode"]
}

datasource db {
  provider        = "postgresql"
  url             = "postgres://postgres@localhost:15432/postgres"
  planetScaleMode = true
}
  1. Manually add some relations and @relation tags.

  2. Run prisma db pull.

Result: All manually added relations and @relation attributes will be deleted, and the datasource will lose planetScaleMode = true:

generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["planetScaleMode"]
}

datasource db {
  provider = "postgresql"
  url      = "postgres://postgres@localhost:15432/postgres"
}

Expected behavior

Prisma should preserve manually added relations (and planetScaleMode = true) when prisma db pull is run.

Prisma information

See above.

Environment & setup

  • OS: Linux
  • Database: PostgreSQL Citus
  • Node.js version: v14.17.4

Prisma Version

prisma                : 2.30.3
@prisma/client        : 2.30.3
Current platform      : debian-openssl-1.1.x
Query Engine (Binary) : query-engine b8c35d44de987a9691890b3ddf3e2e7effb9bf20 (at node_modules/@prisma/engines/query-engine-debian-openssl-1.1.x)
Migration Engine      : migration-engine-cli b8c35d44de987a9691890b3ddf3e2e7effb9bf20 (at node_modules/@prisma/engines/migration-engine-debian-openssl-1.1.x)
Introspection Engine  : introspection-core b8c35d44de987a9691890b3ddf3e2e7effb9bf20 (at node_modules/@prisma/engines/introspection-engine-debian-openssl-1.1.x)
Format Binary         : prisma-fmt b8c35d44de987a9691890b3ddf3e2e7effb9bf20 (at node_modules/@prisma/engines/prisma-fmt-debian-openssl-1.1.x)
Default Engines Hash  : b8c35d44de987a9691890b3ddf3e2e7effb9bf20
Studio                : 0.423.0
Preview Features      : planetScaleMode

created time in 2 days

pull request commentprisma/prisma-engines

Re-introspection without foreign keys

This would also be useful for large Citus databases, because Citus has very clunky support for FOREIGN KEY constraints, to the point that it's often worth omitting them.

pimeys

comment created time in 2 days

push eventfaradayio/sdk_docs

gh-actions

commit sha aae4fc8e7bc3f54b053dd04a9b0ea7c0ed6c581b

Deploy website - based on 1a1278579bebf74b82c2fd4bc22499644666dbf4

view details

push time in 6 days

push eventfaradayio/sdk_docs

Eric Kidd

commit sha 1a1278579bebf74b82c2fd4bc22499644666dbf4

openapi: Update for /uploads support

view details

push time in 6 days

push eventfaradayio/sdk_docs

gh-actions

commit sha 7ae5ca3ecc61d4815c9ffa702e7bdbc58370203c

Deploy website - based on acc55c3310be5462acdff588b43fa526d51aeb18

view details

push time in 20 days

push eventfaradayio/sdk_docs

Eric Kidd

commit sha acc55c3310be5462acdff588b43fa526d51aeb18

api: Make `DataMap` match database We already have 20-30 data map values in the database, and code which compiles them to SQL. Let's make the wire format match the internal format, since the internal format is fine, and we if we match it, we won't have to translate.

view details

push time in 20 days

push eventfaradayio/sdk_docs

gh-actions

commit sha 8f58e198d1e3a6d5b1b91236f848aa23f5a030dd

Deploy website - based on abd33b6bf29ee2b13438f27497e3854839aecf27

view details

push time in 23 days

push eventfaradayio/sdk_docs

Eric Kidd

commit sha abd33b6bf29ee2b13438f27497e3854839aecf27

openapi: Use same data map formats as Kopeng Trying to have a completely different set of names here turns out to be a lot of work.

view details

push time in 23 days

push eventfaradayio/sdk_docs

Eric Kidd

commit sha b104031770b67d4705e1b9b58a3a07acf08ecfc2

example: Update example client code This is now in line with the latest spec, I hope.

view details

push time in a month

push eventfaradayio/sdk_docs

gh-actions

commit sha 99a46a6cfc2b87e7376b143c6abd06b5ee511ed0

Deploy website - based on f864e1bb686f8bdb3cf2454f835da5b38a1c10ed

view details

push time in a month

push eventfaradayio/sdk_docs

Eric Kidd

commit sha f864e1bb686f8bdb3cf2454f835da5b38a1c10ed

openapi: Update spec for event streams

view details

push time in a month

push eventfaradayio/sdk_docs

gh-actions

commit sha 59bc685f1825434591e18ef249e3c52a800a1ba7

Deploy website - based on 578fd3a0d0c95e66d092e286d5ecabcaa380ab82

view details

push time in 2 months

push eventfaradayio/sdk_docs

Eric Kidd

commit sha 578fd3a0d0c95e66d092e286d5ecabcaa380ab82

api: Update event_streams & event_emitters

view details

push time in 2 months

push eventfaradayio/sdk_docs

gh-actions

commit sha 1777e211e1c8665658305a88986f8ee06b77fc2e

Deploy website - based on 1abc505615863e183a06ca7784f67a1940f181b4

view details

push time in 2 months

push eventfaradayio/sdk_docs

Eric Kidd

commit sha 1abc505615863e183a06ca7784f67a1940f181b4

Convert to OpenAPI and start update spec Right now, I'm working to drag this spec into correspondance with the database.

view details

push time in 2 months

issue commentfaradayio/cage

Cage for compiled languages

The cage source mount command does not currently do a great job with compiled languages. Usually I resort to something like cage run $CONTAINER compile_command && cage restart $CONTAINER. I don't have any particularly well-thought-through ideas about how to handle this at this point, but it would probably involve automating the above.

MaksimMyshkin

comment created time in 2 months

push eventfaradayio/falconeri

Eric Kidd

commit sha 2d7a687a9ecb56fc909530fee7b4860b4ccb18a1

Link to source for guide The website is down, so just link directly to the guide.

view details

push time in 2 months