generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
fix: mysql fixes in WASM plugin
Showing
17 changed files
with
2,111 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
// @generated | ||
// This file is @generated by prost-build. | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct Config { | ||
#[prost(message, optional, tag="1")] | ||
pub config: ::core::option::Option<super::super::schema::v1::Config>, | ||
#[prost(message, repeated, tag="2")] | ||
pub references: ::prost::alloc::vec::Vec<super::super::schema::v1::Ref>, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct Data { | ||
#[prost(message, optional, tag="1")] | ||
pub data: ::core::option::Option<super::super::schema::v1::Data>, | ||
#[prost(string, tag="2")] | ||
pub schema: ::prost::alloc::string::String, | ||
#[prost(message, repeated, tag="3")] | ||
pub references: ::prost::alloc::vec::Vec<super::super::schema::v1::Ref>, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct Database { | ||
#[prost(message, optional, tag="1")] | ||
pub database: ::core::option::Option<super::super::schema::v1::Database>, | ||
#[prost(message, repeated, tag="2")] | ||
pub references: ::prost::alloc::vec::Vec<super::super::schema::v1::Ref>, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct Enum { | ||
#[prost(message, optional, tag="1")] | ||
pub r#enum: ::core::option::Option<super::super::schema::v1::Enum>, | ||
#[prost(message, repeated, tag="2")] | ||
pub references: ::prost::alloc::vec::Vec<super::super::schema::v1::Ref>, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct Topic { | ||
#[prost(message, optional, tag="1")] | ||
pub topic: ::core::option::Option<super::super::schema::v1::Topic>, | ||
#[prost(message, repeated, tag="2")] | ||
pub references: ::prost::alloc::vec::Vec<super::super::schema::v1::Ref>, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct TypeAlias { | ||
#[prost(message, optional, tag="1")] | ||
pub typealias: ::core::option::Option<super::super::schema::v1::TypeAlias>, | ||
#[prost(message, repeated, tag="2")] | ||
pub references: ::prost::alloc::vec::Vec<super::super::schema::v1::Ref>, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct Secret { | ||
#[prost(message, optional, tag="1")] | ||
pub secret: ::core::option::Option<super::super::schema::v1::Secret>, | ||
#[prost(message, repeated, tag="2")] | ||
pub references: ::prost::alloc::vec::Vec<super::super::schema::v1::Ref>, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct Verb { | ||
#[prost(message, optional, tag="1")] | ||
pub verb: ::core::option::Option<super::super::schema::v1::Verb>, | ||
#[prost(string, tag="2")] | ||
pub schema: ::prost::alloc::string::String, | ||
#[prost(string, tag="3")] | ||
pub json_request_schema: ::prost::alloc::string::String, | ||
#[prost(message, repeated, tag="4")] | ||
pub references: ::prost::alloc::vec::Vec<super::super::schema::v1::Ref>, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct Module { | ||
#[prost(string, tag="1")] | ||
pub name: ::prost::alloc::string::String, | ||
#[prost(string, tag="2")] | ||
pub deployment_key: ::prost::alloc::string::String, | ||
#[prost(string, tag="3")] | ||
pub language: ::prost::alloc::string::String, | ||
#[prost(string, tag="4")] | ||
pub schema: ::prost::alloc::string::String, | ||
#[prost(message, repeated, tag="5")] | ||
pub verbs: ::prost::alloc::vec::Vec<Verb>, | ||
#[prost(message, repeated, tag="6")] | ||
pub data: ::prost::alloc::vec::Vec<Data>, | ||
#[prost(message, repeated, tag="7")] | ||
pub secrets: ::prost::alloc::vec::Vec<Secret>, | ||
#[prost(message, repeated, tag="8")] | ||
pub configs: ::prost::alloc::vec::Vec<Config>, | ||
#[prost(message, repeated, tag="9")] | ||
pub databases: ::prost::alloc::vec::Vec<Database>, | ||
#[prost(message, repeated, tag="10")] | ||
pub enums: ::prost::alloc::vec::Vec<Enum>, | ||
#[prost(message, repeated, tag="11")] | ||
pub topics: ::prost::alloc::vec::Vec<Topic>, | ||
#[prost(message, repeated, tag="12")] | ||
pub typealiases: ::prost::alloc::vec::Vec<TypeAlias>, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct TopologyGroup { | ||
#[prost(string, repeated, tag="1")] | ||
pub modules: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct Topology { | ||
#[prost(message, repeated, tag="1")] | ||
pub levels: ::prost::alloc::vec::Vec<TopologyGroup>, | ||
} | ||
#[derive(Clone, Copy, PartialEq, ::prost::Message)] | ||
pub struct GetModulesRequest { | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct GetModulesResponse { | ||
#[prost(message, repeated, tag="1")] | ||
pub modules: ::prost::alloc::vec::Vec<Module>, | ||
#[prost(message, optional, tag="2")] | ||
pub topology: ::core::option::Option<Topology>, | ||
} | ||
#[derive(Clone, Copy, PartialEq, ::prost::Message)] | ||
pub struct StreamModulesRequest { | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct StreamModulesResponse { | ||
#[prost(message, repeated, tag="1")] | ||
pub modules: ::prost::alloc::vec::Vec<Module>, | ||
#[prost(message, optional, tag="2")] | ||
pub topology: ::core::option::Option<Topology>, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct GetConfigRequest { | ||
#[prost(string, tag="1")] | ||
pub name: ::prost::alloc::string::String, | ||
#[prost(string, optional, tag="2")] | ||
pub module: ::core::option::Option<::prost::alloc::string::String>, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct GetConfigResponse { | ||
#[prost(bytes="bytes", tag="1")] | ||
pub value: ::prost::bytes::Bytes, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct SetConfigRequest { | ||
#[prost(string, tag="1")] | ||
pub name: ::prost::alloc::string::String, | ||
#[prost(string, optional, tag="2")] | ||
pub module: ::core::option::Option<::prost::alloc::string::String>, | ||
#[prost(bytes="bytes", tag="3")] | ||
pub value: ::prost::bytes::Bytes, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct SetConfigResponse { | ||
#[prost(bytes="bytes", tag="1")] | ||
pub value: ::prost::bytes::Bytes, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct GetSecretRequest { | ||
#[prost(string, tag="1")] | ||
pub name: ::prost::alloc::string::String, | ||
#[prost(string, optional, tag="2")] | ||
pub module: ::core::option::Option<::prost::alloc::string::String>, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct GetSecretResponse { | ||
#[prost(bytes="bytes", tag="1")] | ||
pub value: ::prost::bytes::Bytes, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct SetSecretRequest { | ||
#[prost(string, tag="1")] | ||
pub name: ::prost::alloc::string::String, | ||
#[prost(string, optional, tag="2")] | ||
pub module: ::core::option::Option<::prost::alloc::string::String>, | ||
#[prost(bytes="bytes", tag="3")] | ||
pub value: ::prost::bytes::Bytes, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct SetSecretResponse { | ||
#[prost(bytes="bytes", tag="1")] | ||
pub value: ::prost::bytes::Bytes, | ||
} | ||
// @@protoc_insertion_point(module) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
// @generated | ||
// This file is @generated by prost-build. | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct GetDeploymentContextRequest { | ||
#[prost(string, tag="1")] | ||
pub deployment: ::prost::alloc::string::String, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct GetDeploymentContextResponse { | ||
#[prost(string, tag="1")] | ||
pub module: ::prost::alloc::string::String, | ||
#[prost(string, tag="2")] | ||
pub deployment: ::prost::alloc::string::String, | ||
#[prost(map="string, bytes", tag="3")] | ||
pub configs: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::bytes::Bytes>, | ||
#[prost(map="string, bytes", tag="4")] | ||
pub secrets: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::bytes::Bytes>, | ||
#[prost(message, repeated, tag="5")] | ||
pub databases: ::prost::alloc::vec::Vec<get_deployment_context_response::Dsn>, | ||
#[prost(message, repeated, tag="6")] | ||
pub routes: ::prost::alloc::vec::Vec<get_deployment_context_response::Route>, | ||
} | ||
/// Nested message and enum types in `GetDeploymentContextResponse`. | ||
pub mod get_deployment_context_response { | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct Dsn { | ||
#[prost(string, tag="1")] | ||
pub name: ::prost::alloc::string::String, | ||
#[prost(enumeration="DbType", tag="2")] | ||
pub r#type: i32, | ||
#[prost(string, tag="3")] | ||
pub dsn: ::prost::alloc::string::String, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct Route { | ||
#[prost(string, tag="1")] | ||
pub deployment: ::prost::alloc::string::String, | ||
#[prost(string, tag="2")] | ||
pub uri: ::prost::alloc::string::String, | ||
} | ||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] | ||
#[repr(i32)] | ||
pub enum DbType { | ||
Unspecified = 0, | ||
Postgres = 1, | ||
Mysql = 2, | ||
} | ||
impl DbType { | ||
/// String value of the enum field names used in the ProtoBuf definition. | ||
/// | ||
/// The values are not transformed in any way and thus are considered stable | ||
/// (if the ProtoBuf definition does not change) and safe for programmatic use. | ||
pub fn as_str_name(&self) -> &'static str { | ||
match self { | ||
Self::Unspecified => "DB_TYPE_UNSPECIFIED", | ||
Self::Postgres => "DB_TYPE_POSTGRES", | ||
Self::Mysql => "DB_TYPE_MYSQL", | ||
} | ||
} | ||
/// Creates an enum from field names used in the ProtoBuf definition. | ||
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> { | ||
match value { | ||
"DB_TYPE_UNSPECIFIED" => Some(Self::Unspecified), | ||
"DB_TYPE_POSTGRES" => Some(Self::Postgres), | ||
"DB_TYPE_MYSQL" => Some(Self::Mysql), | ||
_ => None, | ||
} | ||
} | ||
} | ||
} | ||
// @@protoc_insertion_point(module) |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// @generated | ||
// This file is @generated by prost-build. | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct AcquireLeaseRequest { | ||
#[prost(string, repeated, tag="1")] | ||
pub key: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, | ||
#[prost(message, optional, tag="3")] | ||
pub ttl: ::core::option::Option<::prost_types::Duration>, | ||
} | ||
#[derive(Clone, Copy, PartialEq, ::prost::Message)] | ||
pub struct AcquireLeaseResponse { | ||
} | ||
// @@protoc_insertion_point(module) |
105 changes: 105 additions & 0 deletions
105
backend/protos/src/protos/xyz.block.ftl.provisioner.v1beta1.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
// @generated | ||
// This file is @generated by prost-build. | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct ProvisionRequest { | ||
#[prost(string, tag="1")] | ||
pub ftl_cluster_id: ::prost::alloc::string::String, | ||
#[prost(message, optional, tag="2")] | ||
pub desired_module: ::core::option::Option<super::super::schema::v1::Module>, | ||
#[prost(message, optional, tag="3")] | ||
pub previous_module: ::core::option::Option<super::super::schema::v1::Module>, | ||
#[prost(string, repeated, tag="4")] | ||
pub kinds: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct ProvisionResponse { | ||
#[prost(string, tag="1")] | ||
pub provisioning_token: ::prost::alloc::string::String, | ||
#[prost(enumeration="provision_response::ProvisionResponseStatus", tag="2")] | ||
pub status: i32, | ||
} | ||
/// Nested message and enum types in `ProvisionResponse`. | ||
pub mod provision_response { | ||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] | ||
#[repr(i32)] | ||
pub enum ProvisionResponseStatus { | ||
Unspecified = 0, | ||
Submitted = 1, | ||
} | ||
impl ProvisionResponseStatus { | ||
/// String value of the enum field names used in the ProtoBuf definition. | ||
/// | ||
/// The values are not transformed in any way and thus are considered stable | ||
/// (if the ProtoBuf definition does not change) and safe for programmatic use. | ||
pub fn as_str_name(&self) -> &'static str { | ||
match self { | ||
Self::Unspecified => "PROVISION_RESPONSE_STATUS_UNSPECIFIED", | ||
Self::Submitted => "PROVISION_RESPONSE_STATUS_SUBMITTED", | ||
} | ||
} | ||
/// Creates an enum from field names used in the ProtoBuf definition. | ||
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> { | ||
match value { | ||
"PROVISION_RESPONSE_STATUS_UNSPECIFIED" => Some(Self::Unspecified), | ||
"PROVISION_RESPONSE_STATUS_SUBMITTED" => Some(Self::Submitted), | ||
_ => None, | ||
} | ||
} | ||
} | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct StatusRequest { | ||
#[prost(string, tag="1")] | ||
pub provisioning_token: ::prost::alloc::string::String, | ||
/// The outputs of this module are updated if the the status is a success | ||
#[prost(message, optional, tag="2")] | ||
pub desired_module: ::core::option::Option<super::super::schema::v1::Module>, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct ProvisioningEvent { | ||
#[prost(oneof="provisioning_event::Value", tags="1, 2, 3, 4")] | ||
pub value: ::core::option::Option<provisioning_event::Value>, | ||
} | ||
/// Nested message and enum types in `ProvisioningEvent`. | ||
pub mod provisioning_event { | ||
#[derive(Clone, PartialEq, ::prost::Oneof)] | ||
pub enum Value { | ||
#[prost(message, tag="1")] | ||
ModuleRuntimeEvent(super::super::super::schema::v1::ModuleRuntimeEvent), | ||
#[prost(message, tag="2")] | ||
DatabaseRuntimeEvent(super::super::super::schema::v1::DatabaseRuntimeEvent), | ||
#[prost(message, tag="3")] | ||
TopicRuntimeEvent(super::super::super::schema::v1::TopicRuntimeEvent), | ||
#[prost(message, tag="4")] | ||
VerbRuntimeEvent(super::super::super::schema::v1::VerbRuntimeEvent), | ||
} | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct StatusResponse { | ||
#[prost(oneof="status_response::Status", tags="1, 2")] | ||
pub status: ::core::option::Option<status_response::Status>, | ||
} | ||
/// Nested message and enum types in `StatusResponse`. | ||
pub mod status_response { | ||
#[derive(Clone, Copy, PartialEq, ::prost::Message)] | ||
pub struct ProvisioningRunning { | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct ProvisioningFailed { | ||
#[prost(string, tag="1")] | ||
pub error_message: ::prost::alloc::string::String, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct ProvisioningSuccess { | ||
#[prost(message, repeated, tag="1")] | ||
pub events: ::prost::alloc::vec::Vec<super::ProvisioningEvent>, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Oneof)] | ||
pub enum Status { | ||
#[prost(message, tag="1")] | ||
Running(ProvisioningRunning), | ||
#[prost(message, tag="2")] | ||
Success(ProvisioningSuccess), | ||
} | ||
} | ||
// @@protoc_insertion_point(module) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// @generated | ||
// This file is @generated by prost-build. | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct PublishEventRequest { | ||
#[prost(message, optional, tag="1")] | ||
pub topic: ::core::option::Option<super::super::schema::v1::Ref>, | ||
#[prost(bytes="bytes", tag="2")] | ||
pub body: ::prost::bytes::Bytes, | ||
#[prost(string, tag="3")] | ||
pub key: ::prost::alloc::string::String, | ||
/// Only verb name is included because this verb will be in the same module as topic | ||
#[prost(string, tag="4")] | ||
pub caller: ::prost::alloc::string::String, | ||
} | ||
#[derive(Clone, Copy, PartialEq, ::prost::Message)] | ||
pub struct PublishEventResponse { | ||
} | ||
// @@protoc_insertion_point(module) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// @generated | ||
// This file is @generated by prost-build. | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct AddMemberRequest { | ||
#[prost(string, tag="1")] | ||
pub address: ::prost::alloc::string::String, | ||
#[prost(uint64, tag="2")] | ||
pub replica_id: u64, | ||
#[prost(uint64, repeated, tag="3")] | ||
pub shard_ids: ::prost::alloc::vec::Vec<u64>, | ||
} | ||
#[derive(Clone, Copy, PartialEq, ::prost::Message)] | ||
pub struct AddMemberResponse { | ||
} | ||
// @@protoc_insertion_point(module) |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
-- name: GetUserByID :one | ||
SELECT id, name, email FROM users WHERE id = ?; | ||
|
||
-- name: CreateUser :exec | ||
INSERT INTO users (name, email) VALUES (?, ?); | ||
|
||
-- name: GetRequestData :many | ||
SELECT data FROM requests; | ||
|
||
-- name: CreateRequest :exec | ||
INSERT INTO requests (data) VALUES (?); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE TABLE users ( | ||
id SERIAL PRIMARY KEY, | ||
name TEXT NOT NULL, | ||
email TEXT | ||
); | ||
|
||
CREATE TABLE requests | ||
( | ||
data TEXT, | ||
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
-- name: GetUserByID :one | ||
SELECT id, name, email FROM users WHERE id = $1; | ||
|
||
-- name: CreateUser :exec | ||
INSERT INTO users (name, email) VALUES ($1, $2); | ||
|
||
-- name: GetRequestData :many | ||
SELECT data FROM requests; | ||
|
||
-- name: CreateRequest :exec | ||
INSERT INTO requests (data) VALUES ($1); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE TABLE users ( | ||
id SERIAL PRIMARY KEY, | ||
name TEXT NOT NULL, | ||
email TEXT | ||
); | ||
|
||
CREATE TABLE requests | ||
( | ||
data TEXT, | ||
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP | ||
); |