Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Oct 17 2021 00:20

    thosakwe on master

    Update index.html (compare)

  • Oct 17 2021 00:20

    thosakwe on master

    Update index.html (compare)

  • Apr 26 2021 16:35

    thosakwe on master

    Add Firebase Firestore DB adapt… Merge pull request #3 from neta… (compare)

  • Apr 26 2021 16:35
    thosakwe closed #3
  • Apr 26 2021 16:33
    thosakwe commented #282
  • Apr 26 2021 16:33
    thosakwe commented #282
  • Apr 26 2021 16:33

    dependabot[bot] on npm_and_yarn

    (compare)

  • Apr 26 2021 16:33

    dependabot[bot] on npm_and_yarn

    (compare)

  • Apr 26 2021 16:33
    dependabot[bot] commented #283
  • Apr 26 2021 16:33
    dependabot[bot] commented #283
  • Apr 26 2021 16:33
    thosakwe closed #283
  • Apr 26 2021 16:33
    thosakwe closed #283
  • Apr 26 2021 16:33
    thosakwe closed #282
  • Apr 26 2021 16:33
    thosakwe closed #282
  • Apr 26 2021 16:33
    thosakwe closed #272
  • Apr 26 2021 16:33
    thosakwe closed #272
  • Apr 26 2021 16:33
    thosakwe closed #270
  • Apr 26 2021 16:33
    thosakwe closed #270
  • Apr 26 2021 16:33
    thosakwe closed #259
  • Apr 26 2021 16:33
    thosakwe closed #259
Thomas Hii
@dukefirehawk
@sandrobilbeisi Angel3 is a name chosen to represent a forked version with major breaking change in Angel framework to support NNBD. It provides a clean and distinctive break from the original version on pub.dev. The name has no bearing on the versioning semantic. When the time is right, we will see Angel3 version 5, version 6 etc. At the moment, only "master" branch stable code and "angel3" branch development code are heavily used. User Guide, examples and website have all been ported and updated to use Angel3. Significant work is underway now to add more real world examples and revamping website with angular dart.
Thomas Hii
@dukefirehawk
A new Angel3 website is up and running at https://angel3-framework.web.app.
ENDO Yasuyuki
@eyasuyuki_twitter
Hi. I has 180 tables on my MariaDB database. Why angel3_orm uses private abstract class to model definition? I must write 180 models to single Dart file?
Randal L. Schwartz
@RandalSchwartz
Why do you have 180 tables in your database
@eyasuyuki_twitter
Jonathan Rezende
@jodinathan
I don't know the reasoning behind private abstract classes, but maybe you could add a PR to use public classes @eyasuyuki_twitter ?
ENDO Yasuyuki
@eyasuyuki_twitter
@RandalSchwartz My data are for complexly business application. There are 125 tables, 55 views.
Randal L. Schwartz
@RandalSchwartz
I bet some of those have digits in them.
ENDO Yasuyuki
@eyasuyuki_twitter
@jodinathan PR is nise idea, But it will be breaking chenges for the angel3_orm.
Thomas Hii
@dukefirehawk
ORM for MySQL/MariaDB is still in beta. Can file an issue to describe your use case, so we could analyze to see if it is something doable. Going to spend some time on it soon anyway to update it.
ENDO Yasuyuki
@eyasuyuki_twitter
@dukefirehawk MySQL or MariaDB does not matter this question. I want to make relations between multiple model files. Because I have hundreds of tables/views.
Thomas Hii
@dukefirehawk
The ORM generator read all models and generate all implentation classes on per file basis. In essense, _AClass will be used to generate AClass and AClass is used for all the db queries. This could be an issue with large number of tables with complex n-m and 1-n relationships. Will add this to to-do list. However, in most database design, tables are grouped according to different modules. Can put all tables related to a module in a separate file. Additionally, with 180 tables, likely that you already have a backend running and just want to implement a new feature, can just build models only for those required tables.
Thomas Hii
@dukefirehawk
Angel3 packages min sdk will be changed to 2.14 to be aligned with upgrade to analyzer 3.x.x.
Jonathan Rezende
@jodinathan
any example on how to create operation directives in graphql?
Jonathan Rezende
@jodinathan
I thought operation directives were implemented in a modular way that you could just create some class with resolvers (more like a middleware) but I was wrong, even in graphql-js they are directly implemented in the core of the server
how unfortunate =\
devnullsp
@devnullsp
I was just passing by to congratulate you on Angel3.
It's time to land with Dart on the server!
Thanks
devnullsp
@devnullsp

I found problems with documentation samples:
At Getting started:

var name = req.bodyAsMap['name'] as String;
if (name == null) {

Give on error about null isnt a String.....

I changed by:

String? name = req.bodyAsMap['name'];
if (name == null) {

Thomas Hii
@dukefirehawk
Thanks for reporting. The document is a bit out of date as it was just a quick port of the old version. We will be doing a major revision on it soon. Suggestions are welcome.
devnullsp
@devnullsp
Oh, thanks.
devnullsp
@devnullsp
Humm if angel3_client its for flutter...
this sentence is worng. mirror are dont allowed at flutter
"The CLI client also supports reflection via package:belatuk_json_serializer. There is no need to work with Maps; you can use the same class on the client and the server."
devnullsp
@devnullsp
image.png
sorry i have a lot of problems with doc....
if you dont add return true, middleware chain are stoped
you need:
app.all('*', (req, res) {
print("Ejecutando para ${req.uri}");
return true;
});
app.all('/greet', (req, res) {
print("Filtro para ${req.uri}");
return true;
});
they are a new version on the fly? or this is ok for use?
im thinking create a visual app for maintain and configure the server
similar to strapi.io or appwrite or so
Thomas Hii
@dukefirehawk
@devnullsp The document is a bit outdated, it is on to-do list. I would suggest taking a look at packages/framework/test, which are the working use cases.
devnullsp
@devnullsp
thanks @dukefirehawk. Im interesting in spanish tutorial, samples and video demos. Im learning how use orm with mysql/postgress/sqllite, but i dont see how. they are any cli utility for generate models and migrations files? i dont see any simple but full examples.
Thanks for your time (and sorry my english).
sorry, im interesting in do spanish tut.......
Mi first proyect its do one visual tool for generate models and db and other configuration angel3 files
You can start off with https://github.com/dukefirehawk/boilerplates/tree/angel3-orm, build your models then run dart run build_runner build to generate the code required for ORM to work
The source of English documents can be found here https://github.com/dukefirehawk/angel3-guide
Thomas Hii
@dukefirehawk
angel_orm_test contains the examples for most of the use cases plus the SQL queries for table creations
devnullsp
@devnullsp
image.png
oh! thanks a lot! but i dont know what i need to import for Optional class
image.png
Thomas Hii
@dukefirehawk
devnullsp
@devnullsp
ok
devnullsp
@devnullsp
image.png
thanks im on route :)
But now i have another problem.
the result of mysql connection is timeout.
I test with other packege and DBeaver and all are ok.
Any advice?
image.png
devnullsp
@devnullsp
package:galileo_sqljocky5/public/connection/connection.dart
are ok
image.png
Thomas Hii
@dukefirehawk
For Angel3 verson 4, I would suggest using PostgreSQL. sqljocky5 driver does not work with MySql8+, even with MySql 5 or MariaDb also has issues. However, you can upgrade Angel3 to version 6 if using MariaDb 10.2.x. For MySql 8+, we are still testing the driver, a few more issues to fix. The main problem is due to the rather poor state of MySQL driver. Perfectly valid SQL that runs on workbench but won't work through the driver. Getting MySql 8+ to work properly is a top priority.
devnullsp
@devnullsp
image.png
ok, yes im using version 6 and mariadb 10.2.x And not, sqljocky5 its only for testing, to show if database connection its ok and run fine :(.
Im unsure why i get timeout when use Mysql_dart :S
Thanks for your reply
devnullsp
@devnullsp
its a reported problem with mysql package :(
Thomas Hii
@dukefirehawk
@devnullsp We have released https://github.com/dukefirehawk/boilerplates/tree/angel3-orm-mysql. A starter template for ORM with MariaDB. For ORM with MySQL 8, there are still a few driver related issues to be sorted out.