Skip to content

Commit

Permalink
Add meta info to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Oyelowo committed Dec 9, 2023
1 parent e7abb26 commit 731bc75
Show file tree
Hide file tree
Showing 28 changed files with 189 additions and 141 deletions.
7 changes: 7 additions & 0 deletions migrator-macros/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Author: Oyelowo Oyedayo
* Email: [email protected]
* Copyright (c) 2023 Oyelowo Oyedayo
* Licensed under the MIT license
*/

mod migration;
use migration::generate_embedded_migrations;
use proc_macro::TokenStream;
Expand Down
7 changes: 7 additions & 0 deletions models/src/models/alien.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Author: Oyelowo Oyedayo
* Email: [email protected]
* Copyright (c) 2023 Oyelowo Oyedayo
* Licensed under the MIT license
*/

use std::time::Duration;

use crate::{AlienVisitsPlanet, Planet, Rocket, SpaceShip, Weapon};
Expand Down
7 changes: 7 additions & 0 deletions models/src/models/attributes.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Author: Oyelowo Oyedayo
* Email: [email protected]
* Copyright (c) 2023 Oyelowo Oyedayo
* Licensed under the MIT license
*/

// use super::studentwithgranularattributes;
use serde::{Deserialize, Serialize};
use std::time::Duration;
Expand Down
7 changes: 7 additions & 0 deletions models/src/models/combined.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Author: Oyelowo Oyedayo
* Email: [email protected]
* Copyright (c) 2023 Oyelowo Oyedayo
* Licensed under the MIT license
*/

#![allow(dead_code)]
#![allow(non_upper_case_globals)]
#![allow(non_snake_case)]
Expand Down
7 changes: 7 additions & 0 deletions models/src/models/configuration.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Author: Oyelowo Oyedayo
* Email: [email protected]
* Copyright (c) 2023 Oyelowo Oyedayo
* Licensed under the MIT license
*/

use std::fmt::Display;

use serde::{Deserialize, Serialize};
Expand Down
7 changes: 7 additions & 0 deletions models/src/models/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Author: Oyelowo Oyedayo
* Email: [email protected]
* Copyright (c) 2023 Oyelowo Oyedayo
* Licensed under the MIT license
*/

pub mod alien;
pub mod attributes;
pub mod combined;
Expand Down
7 changes: 7 additions & 0 deletions models/src/models/planet.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Author: Oyelowo Oyedayo
* Email: [email protected]
* Copyright (c) 2023 Oyelowo Oyedayo
* Licensed under the MIT license
*/

use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use surreal_orm::{Node, SurrealSimpleId};
Expand Down
7 changes: 7 additions & 0 deletions models/src/models/spaceship.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Author: Oyelowo Oyedayo
* Email: [email protected]
* Copyright (c) 2023 Oyelowo Oyedayo
* Licensed under the MIT license
*/

use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use surreal_orm::{Model, Node, SurrealId};
Expand Down
7 changes: 7 additions & 0 deletions models/src/models/visits.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Author: Oyelowo Oyedayo
* Email: [email protected]
* Copyright (c) 2023 Oyelowo Oyedayo
* Licensed under the MIT license
*/

use std::time::Duration;

use chrono::{DateTime, Utc};
Expand Down
7 changes: 7 additions & 0 deletions models/src/models/weapon.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Author: Oyelowo Oyedayo
* Email: [email protected]
* Copyright (c) 2023 Oyelowo Oyedayo
* Licensed under the MIT license
*/

use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use surreal_orm::{Node, Object, SurrealId, SurrealSimpleId};
Expand Down
7 changes: 7 additions & 0 deletions proc-macros-helpers/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Author: Oyelowo Oyedayo
* Email: [email protected]
* Copyright (c) 2023 Oyelowo Oyedayo
* Licensed under the MIT license
*/

use proc_macro2::{Span, TokenStream, TokenTree};
use proc_macro_crate::{crate_name, FoundCrate};
use quote::quote;
Expand Down
7 changes: 7 additions & 0 deletions query-builder-macros/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Author: Oyelowo Oyedayo
* Email: [email protected]
* Copyright (c) 2023 Oyelowo Oyedayo
* Licensed under the MIT license
*/

use proc_macro::TokenStream;
use surreal_query_builder::sql;
use syn::{parse_macro_input, LitStr};
Expand Down
7 changes: 7 additions & 0 deletions query-builder-macros/src/query_builder/block.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Author: Oyelowo Oyedayo
* Email: [email protected]
* Copyright (c) 2023 Oyelowo Oyedayo
* Licensed under the MIT license
*/

use proc_macro::TokenStream;
use syn::parse_macro_input;

Expand Down
7 changes: 7 additions & 0 deletions query-builder-macros/src/query_builder/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Author: Oyelowo Oyedayo
* Email: [email protected]
* Copyright (c) 2023 Oyelowo Oyedayo
* Licensed under the MIT license
*/

pub(crate) mod block;
pub(crate) mod query_turbo;
pub(crate) mod tokenizer;
Expand Down
7 changes: 7 additions & 0 deletions query-builder-macros/src/query_builder/query_turbo.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Author: Oyelowo Oyedayo
* Email: [email protected]
* Copyright (c) 2023 Oyelowo Oyedayo
* Licensed under the MIT license
*/

use proc_macro::TokenStream;
use syn::parse_macro_input;

Expand Down
7 changes: 7 additions & 0 deletions query-builder-macros/src/query_builder/tokenizer.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Author: Oyelowo Oyedayo
* Email: [email protected]
* Copyright (c) 2023 Oyelowo Oyedayo
* Licensed under the MIT license
*/

use crate::statement_parser::query_chain::{GeneratedCode, QueriesChainParser};
use proc_macros_helpers::get_crate_name;
use quote::quote;
Expand Down
7 changes: 7 additions & 0 deletions query-builder-macros/src/query_builder/transaction.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Author: Oyelowo Oyedayo
* Email: [email protected]
* Copyright (c) 2023 Oyelowo Oyedayo
* Licensed under the MIT license
*/

use proc_macro::TokenStream;
use syn::parse_macro_input;

Expand Down
7 changes: 7 additions & 0 deletions query-builder-macros/src/statement_parser/define_function.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Author: Oyelowo Oyedayo
* Email: [email protected]
* Copyright (c) 2023 Oyelowo Oyedayo
* Licensed under the MIT license
*/

use std::fmt::Display;

use proc_macro::TokenStream;
Expand Down
141 changes: 0 additions & 141 deletions query-builder-macros/src/statement_parser/define_funtion.rs

This file was deleted.

7 changes: 7 additions & 0 deletions query-builder-macros/src/statement_parser/for_.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Author: Oyelowo Oyedayo
* Email: [email protected]
* Copyright (c) 2023 Oyelowo Oyedayo
* Licensed under the MIT license
*/

use proc_macro::TokenStream;
use proc_macros_helpers::get_crate_name;
use quote::{quote, ToTokens};
Expand Down
7 changes: 7 additions & 0 deletions query-builder-macros/src/statement_parser/helpers.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Author: Oyelowo Oyedayo
* Email: [email protected]
* Copyright (c) 2023 Oyelowo Oyedayo
* Licensed under the MIT license
*/

use convert_case::{Case, Casing};
use proc_macros_helpers::get_crate_name;
use quote::format_ident;
Expand Down
7 changes: 7 additions & 0 deletions query-builder-macros/src/statement_parser/if_else.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Author: Oyelowo Oyedayo
* Email: [email protected]
* Copyright (c) 2023 Oyelowo Oyedayo
* Licensed under the MIT license
*/

use proc_macro::TokenStream;
use proc_macros_helpers::get_crate_name;
use quote::{quote, ToTokens};
Expand Down
7 changes: 7 additions & 0 deletions query-builder-macros/src/statement_parser/let_.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Author: Oyelowo Oyedayo
* Email: [email protected]
* Copyright (c) 2023 Oyelowo Oyedayo
* Licensed under the MIT license
*/

use super::return_::ReturnExpr;
use syn::{
parse::{Parse, ParseStream},
Expand Down
7 changes: 7 additions & 0 deletions query-builder-macros/src/statement_parser/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Author: Oyelowo Oyedayo
* Email: [email protected]
* Copyright (c) 2023 Oyelowo Oyedayo
* Licensed under the MIT license
*/

pub mod define_function;
pub mod for_;
pub mod helpers;
Expand Down
Loading

0 comments on commit 731bc75

Please sign in to comment.